-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (41 loc) · 1.22 KB
/
app.yml
File metadata and controls
52 lines (41 loc) · 1.22 KB
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
name: App Deploy (EAS)
# Step 3 of epic #1312 — ship JS bundle updates via Expo EAS on push to master.
#
# Content (scripture.db) is deployed separately by content.yml. This workflow
# handles app code only — lint, then `eas update --branch production`. No DB
# rebuild, no R2 upload.
on:
push:
branches: [master]
paths:
- 'app/**'
workflow_dispatch:
permissions:
contents: read
jobs:
deploy-app:
name: Lint and publish EAS update
runs-on: ubuntu-latest
timeout-minutes: 20
env:
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: app/package-lock.json
- name: Install dependencies
working-directory: app
run: npm ci
- name: Lint
working-directory: app
run: npm run lint
- name: Install EAS CLI
run: npm install -g eas-cli@latest
- name: Publish EAS update
working-directory: app
run: eas update --branch production --message "App update from ${{ github.sha }}" --non-interactive