Merge pull request #512 from gre/feat/gl-react-image #171
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: CI cookbook-expo | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| bundle-ios: | |
| runs-on: macos-15 | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build gl-react packages | |
| run: | | |
| for d in packages/gl-react packages/gl-react-expo; do | |
| pnpm exec babel --root-mode upward --source-maps --extensions '.ts,.tsx' -d "$d/lib" "$d/src" | |
| done | |
| - name: Expo prebuild | |
| working-directory: packages/cookbook-expo | |
| run: pnpm exec expo prebuild --platform ios --no-install | |
| - name: Bundle JS for iOS | |
| working-directory: packages/cookbook-expo | |
| run: | | |
| pnpm exec expo export:embed \ | |
| --platform ios \ | |
| --entry-file "${{ github.workspace }}/packages/cookbook-expo/index.ts" \ | |
| --bundle-output /tmp/main.jsbundle \ | |
| --assets-dest /tmp/assets \ | |
| --dev false |