Files
App/.github/workflows/build-bundle.yml
Brys 9d2e10e996 Switch from Yarn/Node.js to bun for faster dev install (#704)
* refactor: change from yarn to bun for package management

* feat: change workflows all to bun instead of node/yarn.

* refactor: change from node repl to bun repl

* fix: re-add nodejs as an applicable engine to package.json

* fix: remove bun.lock from hash in android-build workflow

---------

Co-authored-by: Ritesh Shukla <riteshshukla2381@gmail.com>
2025-11-23 17:31:24 -06:00

48 lines
1.2 KiB
YAML

# .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