Skip to content

Commit 5af5c29

Browse files
committed
chore: add action to publish expo app
1 parent d448cdc commit 5af5c29

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/expo.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Expo Publish
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
publish:
9+
name: Install and publish
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v1
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: 10.x
19+
20+
- name: Setup Expo
21+
uses: expo/expo-github-action@v5
22+
with:
23+
expo-version: 3.x
24+
expo-username: ${{ secrets.EXPO_CLI_USERNAME }}
25+
expo-password: ${{ secrets.EXPO_CLI_PASSWORD }}
26+
expo-cache: true
27+
28+
- name: Get yarn cache
29+
id: yarn-cache
30+
run: echo "::set-output name=dir::$(yarn cache dir)"
31+
32+
- uses: actions/cache@v1
33+
with:
34+
path: ${{ steps.yarn-cache.outputs.dir }}
35+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
36+
restore-keys: |
37+
${{ runner.os }}-yarn-
38+
39+
- name: Install dependencies
40+
run: yarn
41+
42+
- name: Publish Expo app
43+
working-directory: ./example
44+
run: expo publish

0 commit comments

Comments
 (0)