chore: upgrade example to expo54 sdk with CNG #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |