Skip to content

Merge branch 'production-build' into staging #15

Merge branch 'production-build' into staging

Merge branch 'production-build' into staging #15

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 }}