File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : EXPO Publish
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ branch :
7+ description : EAS update branch
8+ required : true
9+ default : main
10+
11+ jobs :
12+ publish :
13+ runs-on : ubuntu-latest
14+ env :
15+ # Quieter deprecation noise for actions running on older Node until defaults switch to 24.
16+ FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 : true
17+ steps :
18+ - name : Checkout
19+ uses : actions/checkout@v5
20+
21+ - name : Setup Node
22+ uses : actions/setup-node@v5
23+ with :
24+ node-version : 22
25+ cache : npm
26+ cache-dependency-path : package-lock.json
27+
28+ - name : Install dependencies
29+ run : npm ci
30+
31+ - name : Resolve target update branch
32+ id : target
33+ shell : bash
34+ run : |
35+ set -euo pipefail
36+ if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
37+ target_branch="${{ inputs.branch }}"
38+ else
39+ target_branch="main"
40+ fi
41+ echo "branch=$target_branch" >> "$GITHUB_OUTPUT"
42+
43+ - name : Verify Expo auth
44+ env :
45+ EXPO_TOKEN : ${{ secrets.EXPO_TOKEN }}
46+ shell : bash
47+ run : |
48+ set -euo pipefail
49+ if [[ -z "${EXPO_TOKEN:-}" ]]; then
50+ echo "::error::Add repository secret EXPO_TOKEN (Expo dashboard → Access tokens)."
51+ exit 1
52+ fi
53+ npx eas-cli@latest whoami
54+
55+ - name : Publish OTA update
56+ env :
57+ EXPO_TOKEN : ${{ secrets.EXPO_TOKEN }}
58+ shell : bash
59+ run : |
60+ set -euo pipefail
61+ npx eas-cli@latest update \
62+ --non-interactive \
63+ --branch "${{ steps.target.outputs.branch }}" \
64+ --message "CI publish ${GITHUB_SHA}"
Original file line number Diff line number Diff line change 1- name : Vercel Deloy
1+ name : Vercel Deploy (Test Envs)
22
33on :
44 workflow_dispatch :
You can’t perform that action at this time.
0 commit comments