Merge branch 'production-build' into staging #15
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: EAS Build & Submit | |
on: | |
push: | |
branches: | |
- production-build | |
- staging-build | |
jobs: | |
eas-build-and-submit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📦 Checkout Repository | |
uses: actions/checkout@v3 | |
- name: 🏗 Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: yarn | |
- name: 🏗 Setup Expo and EAS | |
uses: expo/expo-github-action@v8 | |
with: | |
eas-version: latest | |
token: ${{ secrets.EXPO_TOKEN }} | |
- name: 🧶 Install Project Dependencies | |
run: yarn | |
- name: Run Unit Tests | |
run: yarn test:unit | |
- name: 🍏 | 🤖 Build on EAS | |
run: eas build --platform all --profile ${{ github.ref_name == 'production-build' && 'production' || 'staging' }} --non-interactive --auto-submit | |
env: | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} |