Skip to content

Commit 513de3c

Browse files
committed
feat: yarn -> bun migration
1 parent c362ce6 commit 513de3c

166 files changed

Lines changed: 2052 additions & 6746 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/actions/setup-tools/README.md

Lines changed: 8 additions & 5 deletions

.github/actions/setup-tools/action.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ outputs:
2424
java-version:
2525
description: 'Java version from .tool-versions'
2626
value: ${{ steps.read-versions.outputs.java-version }}
27+
bun-version:
28+
description: 'Bun version from .tool-versions'
29+
value: ${{ steps.read-versions.outputs.bun-version }}
2730

2831
runs:
2932
using: 'composite'
@@ -76,7 +79,6 @@ runs:
7679
uses: actions/setup-node@v4
7780
with:
7881
node-version: ${{ steps.read-versions.outputs.nodejs-version }}
79-
cache: ${{ inputs.cache == 'true' && 'yarn' || '' }}
8082

8183
- name: Setup Ruby
8284
if: steps.read-versions.outputs.ruby-version
@@ -99,6 +101,16 @@ runs:
99101
distribution: 'zulu'
100102
java-version: ${{ steps.read-versions.outputs.java-version }}
101103

104+
- name: Setup Bun via asdf
105+
if: steps.read-versions.outputs.bun-version
106+
shell: bash
107+
run: |
108+
echo "🔧 Installing Bun via asdf"
109+
asdf plugin add bun https://github.com/cometkim/asdf-bun.git || echo "Plugin already exists"
110+
asdf install bun ${{ steps.read-versions.outputs.bun-version }}
111+
asdf global bun ${{ steps.read-versions.outputs.bun-version }}
112+
echo "✅ Bun ${{ steps.read-versions.outputs.bun-version }} installed"
113+
102114
branding:
103115
icon: 'settings'
104116
color: 'blue'

.github/workflows/check.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
uses: ./.github/actions/setup-tools
1818

1919
- name: Install dependencies
20-
run: yarn install --frozen-lockfile
20+
run: bun install --frozen-lockfile
2121

2222
- name: Run ESLint
23-
run: yarn lint
23+
run: bun run lint
2424

2525
example-compilation:
2626
runs-on: macos-15
@@ -48,18 +48,18 @@ jobs:
4848
echo "/usr/local/opt/ccache/libexec" >> $GITHUB_PATH
4949
5050
- name: Install dependencies
51-
run: yarn install --frozen-lockfile
51+
run: bun install --frozen-lockfile
5252

5353
- name: Install example dependencies
54-
working-directory: packages/examples/${{ matrix.example }}
55-
run: yarn install --frozen-lockfile
54+
working-directory: apps/${{ matrix.example }}
55+
run: bun install --frozen-lockfile
5656

5757
- name: Install iOS dependencies (CocoaPods)
58-
working-directory: packages/examples/${{ matrix.example }}/ios
58+
working-directory: apps/${{ matrix.example }}/ios
5959
run: bundle exec pod install
6060

6161
- name: Build iOS
62-
working-directory: packages/examples/${{ matrix.example }}
62+
working-directory: apps/${{ matrix.example }}
6363
run: |
6464
export PATH="/usr/local/opt/ccache/libexec:$PATH"
6565
npx react-native build-ios --mode Debug

.gitignore

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ local.properties
3939
#
4040
node_modules/
4141
npm-debug.log
42-
yarn-error.log
4342

4443
# fastlane
4544
#
@@ -66,10 +65,5 @@ yarn-error.log
6665
# testing
6766
/coverage
6867

69-
# Yarn
70-
.yarn/*
71-
!.yarn/patches
72-
!.yarn/plugins
73-
!.yarn/releases
74-
!.yarn/sdks
75-
!.yarn/versions
68+
# Bun
69+
.bun

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
ruby 3.4.2
22
nodejs 23.9.0
3+
bun 1.2.18

README.md

Lines changed: 7 additions & 7 deletions
Lines changed: 4 additions & 4 deletions
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)