-
Notifications
You must be signed in to change notification settings - Fork 5
40 lines (34 loc) · 1.02 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Expo Publish
on:
push:
branches:
- master
- staging
jobs:
publish:
name: Install and publish
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Publish to Expo
uses: expo/expo-github-action@v5
with:
expo-version: 3.x
expo-username: ${{ secrets.EXPO_USERNAME }}
expo-password: ${{ secrets.EXPO_PASSWORD }}
expo-packager: yarn
- name: Install dependencies
run: cd app && yarn
- name: Publish to default channel
run: cd app && yarn expo publish
- name: Publish to staging channel
if: github.ref == 'refs/heads/staging'
run: cd app && yarn expo publish --release-channel staging
- name: Publish to production channel
if: github.ref == 'refs/heads/master'
run: cd app && yarn expo publish --release-channel prod