# .github/workflows/build-ios.yml name: Build JS Bundle on: pull_request: concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true jobs: build-bundle: runs-on: macos-latest steps: - name: 🧾 Checkout repository uses: actions/checkout@v4 - name: 🖥 Setup Bun 1.3.2 uses: oven-sh/setup-bun@v2 with: bun-version: 1.3.2 - name: 📦 Install dependencies run: bun i - name: 🧩 Build JS bundle for iOS run: | mkdir -p ios/build bun x react-native bundle \ --platform ios \ --dev false \ --entry-file index.js \ --bundle-output ios/main.jsbundle \ --assets-dest ios - name: 🧩 Build JS bundle for Android run: | mkdir -p android/app/src/main/assets mkdir -p android/app/src/main/res bun x react-native bundle \ --platform android \ --dev false \ --entry-file index.js \ --bundle-output android/app/src/main/assets/index.android.bundle \ --assets-dest android/app/src/main/res