-
Notifications
You must be signed in to change notification settings - Fork 79
52 lines (46 loc) · 1.91 KB
/
Copy pathverify-prebuild.yml
File metadata and controls
52 lines (46 loc) · 1.91 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: Verify Expo Prebuild
on:
pull_request:
paths:
- 'example/**'
- 'app.config.js'
- 'app.config.ts'
- 'app.json'
- 'package.json'
- '.github/workflows/verify-prebuild.yml'
jobs:
verify-prebuild:
name: Verify native folders match prebuild
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Node.js and Dependencies
uses: ./.github/actions/setup-node-deps
- name: Run expo prebuild
working-directory: example
run: npx expo prebuild --clean --no-install
- name: Check for uncommitted changes
run: |
if [[ -n $(git status --porcelain example/android example/ios) ]]; then
echo "❌ Error: Native folders don't match expo prebuild output"
echo ""
echo "This means either:"
echo "1. The native folders were manually modified (not allowed)"
echo "2. The app.config.js or plugins changed but native folders weren't updated"
echo ""
echo "To fix this:"
echo "1. Run 'cd example && npx expo prebuild --clean' locally"
echo "2. Commit the changes"
echo ""
echo "═══════════════════════════════════════════════════════════"
echo "Changed files:"
git status --porcelain example/android example/ios
echo ""
echo "═══════════════════════════════════════════════════════════"
echo "Diff:"
git --no-pager diff example/android example/ios
exit 1
else
echo "✅ Success: Native folders match expo prebuild output"
fi