Make the token draggable #1935
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: mobile-build | |
on: | |
pull_request: | |
# We only want to run a build if things that could've affected mobile changed. | |
paths: | |
- yarn.lock | |
- package.json | |
- apps/mobile/**/* | |
- packages/shared/**/* | |
jobs: | |
build-android: | |
if: ${{ !github.event.pull_request.draft }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Setup repo | |
uses: actions/checkout@v3 | |
- name: π Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.5.0 | |
cache: yarn | |
- name: π Setup EAS | |
uses: expo/expo-github-action@v8 | |
with: | |
eas-version: latest | |
token: ${{ secrets.EXPO_TOKEN }} | |
- name: π¦ Install dependencies | |
run: yarn install | |
- name: π Build app | |
run: | | |
cd apps/mobile; | |
eas build -p android -e production --non-interactive | |
build-ios: | |
if: ${{ !github.event.pull_request.draft }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Setup repo | |
uses: actions/checkout@v3 | |
- name: π Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.5.0 | |
cache: yarn | |
- name: π Setup EAS | |
uses: expo/expo-github-action@v8 | |
with: | |
eas-version: latest | |
token: ${{ secrets.EXPO_TOKEN }} | |
- name: π¦ Install dependencies | |
run: yarn install | |
- name: π Build app | |
run: | | |
cd apps/mobile; | |
eas build -p ios -e production --non-interactive |