Skip to content

Commit 68a4a39

Browse files
committed
Switch CI workflows from Bun to Yarn
Replaces Bun with Yarn for dependency management and scripts in Android, iOS, and release GitHub Actions workflows. Updates lockfile and Xcode project to reflect new dependency versions and NitroModules upgrade.
1 parent 4d0939b commit 68a4a39

5 files changed

Lines changed: 475 additions & 475 deletions

File tree

.github/workflows/android-build.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
- 'nitrogen/generated/android/**'
1515
- 'cpp/**'
1616
- 'android/**'
17-
- '**/bun.lock'
17+
- '**/yarn.lock'
1818
- '**/react-native.config.js'
1919
- '**/nitro.json'
2020
pull_request:
@@ -25,7 +25,7 @@ on:
2525
- '**/nitrogen/generated/android/**'
2626
- 'cpp/**'
2727
- 'android/**'
28-
- '**/bun.lock'
28+
- '**/yarn.lock'
2929
- '**/react-native.config.js'
3030
- '**/nitro.json'
3131
workflow_dispatch:
@@ -44,14 +44,19 @@ jobs:
4444
arch: [new, old]
4545
steps:
4646
- uses: actions/checkout@v4
47-
- uses: oven-sh/setup-bun@v2
47+
- uses: actions/setup-node@v4
48+
with:
49+
node-version: '22'
50+
cache: 'yarn'
51+
52+
- name: Install dependencies (yarn)
53+
run: yarn install --frozen-lockfile
4854

49-
- name: Install dependencies (bun)
50-
run: bun install
55+
- name: Install example dependencies (yarn)
56+
run: cd example && yarn install --frozen-lockfile
5157

5258
- name: Generate Nitro modules (codegen)
53-
run: |
54-
npm run codegen
59+
run: yarn codegen
5560

5661
- name: Disable new architecture in gradle.properties
5762
if: matrix.arch == 'old'

.github/workflows/ios-build.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
- 'cpp/**'
1818
- 'ios/**'
1919
- '**/Podfile.lock'
20-
- '**/bun.lock'
20+
- '**/yarn.lock'
2121
- '**/*.podspec'
2222
- '**/react-native.config.js'
2323
- '**/nitro.json'
@@ -32,7 +32,7 @@ on:
3232
- 'cpp/**'
3333
- 'ios/**'
3434
- '**/Podfile.lock'
35-
- '**/bun.lock'
35+
- '**/yarn.lock'
3636
- '**/*.podspec'
3737
- '**/react-native.config.js'
3838
- '**/nitro.json'
@@ -55,18 +55,20 @@ jobs:
5555
arch: [new, old]
5656
steps:
5757
- uses: actions/checkout@v4
58-
- uses: oven-sh/setup-bun@v2
58+
- uses: actions/setup-node@v4
59+
with:
60+
node-version: '22'
61+
cache: 'yarn'
5962
- name: Setup Xcode
6063
uses: maxim-lobanov/setup-xcode@v1
6164
with:
6265
xcode-version: 16.4
6366

64-
- name: Install dependencies (bun)
65-
run: bun install
67+
- name: Install dependencies (yarn)
68+
run: yarn install --frozen-lockfile
6669

6770
- name: Generate Nitro modules (codegen)
68-
run: |
69-
npm run codegen
71+
run: yarn codegen
7072

7173
- name: Disable new architecture in Podfile
7274
if: matrix.arch == 'old'

.github/workflows/release.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,17 @@ jobs:
2424
uses: actions/checkout@v4
2525
with:
2626
fetch-depth: 0
27-
- name: Setup Bun.js
28-
uses: oven-sh/setup-bun@v2
27+
- name: Setup Node.js
28+
uses: actions/setup-node@v4
2929
with:
30-
bun-version: latest
31-
- name: Cache bun dependencies
32-
id: bun-cache
33-
uses: actions/cache@v4
34-
with:
35-
path: ~/.bun/install/cache
36-
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
37-
restore-keys: |
38-
${{ runner.os }}-bun-
30+
node-version: '22'
31+
cache: 'yarn'
3932

40-
- name: Install npm dependencies (bun)
41-
run: bun install
33+
- name: Install npm dependencies (yarn)
34+
run: yarn install --frozen-lockfile
4235

4336
- name: Build lib
44-
run: bun run build
37+
run: yarn build
4538

4639
- name: Release
4740
env:
@@ -52,4 +45,4 @@ jobs:
5245
GIT_AUTHOR_EMAIL: '${{ github.actor }}@users.noreply.github.com'
5346
GIT_COMMITTER_NAME: ${{ github.actor }}
5447
GIT_COMMITTER_EMAIL: '${{ github.actor }}@users.noreply.github.com'
55-
run: bun release
48+
run: yarn release

0 commit comments

Comments
 (0)