-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (50 loc) · 1.72 KB
/
eas-update.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# This workflow follows EAS's Persistent staging flow - https://docs.expo.dev/eas-update/deployment-patterns/#persistent-staging-flow
name: EAS Update
on:
push:
# Release is a special branch that is kept in sync with the production app
# We also want to keep the development build in sync with the main branch
branches: ["release", "main"]
paths:
- "packages/common/lib/**"
- "packages/common/tsconfig.json"
- "packages/mobile/src/**"
- "packages/mobile/App.tsx"
- "packages/mobile/index.js"
- "packages/mobile/app.json"
- "packages/mobile/app.config.ts"
- "packages/mobile/app.config.json"
- "packages/mobile/metro.config.js"
- "packages/mobile/tsconfig.json"
- "yarn.lock"
- ".yarnrc.yml"
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Enable Corepack before setting up Node
run: corepack enable
- name: Set up node 22.x
uses: actions/[email protected]
with:
node-version: 22
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 common
run: yarn workspace @ukdanceblue/common run build
- name: Create update
run: eas update --auto --non-interactive
working-directory: packages/mobile
- name: Upload Sentry sourcemaps
run: npx sentry-expo-upload-sourcemaps dist
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
working-directory: packages/mobile