Skip to content

Commit a91c448

Browse files
committed
chore(ci): migrate workflows to Bun and remove unused lock/config files
- Replace npm with Bun in CI and release workflows - Remove package-lock.json (Bun uses bun.lock) - Remove .coderabbit.yaml and add to .gitignore - Keep setup-node only for npm publish step in release workflow
1 parent db31116 commit a91c448

5 files changed

Lines changed: 26 additions & 4007 deletions

File tree

.coderabbit.yaml

Lines changed: 0 additions & 86 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,21 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v5
1717

18-
- name: Setup Node.js
19-
uses: actions/setup-node@v5
18+
- name: Setup Bun
19+
uses: oven-sh/setup-bun@v2
2020
with:
21-
node-version: '24'
22-
cache: 'npm'
21+
bun-version: latest
2322

24-
- run: npm ci
23+
- run: bun install
2524

2625
- name: Typecheck
27-
run: npm run typecheck
26+
run: bun run typecheck
2827

2928
- name: Build
30-
run: npm run build
29+
run: bun run build
3130

3231
- name: Test
33-
run: npm test
32+
run: bun test
3433

3534
- name: Audit
36-
run: npm audit --audit-level=moderate
35+
run: bun audit

.github/workflows/release.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,19 @@ jobs:
1515
with:
1616
fetch-depth: 0
1717

18-
- name: Setup Node.js for npm publish
19-
uses: actions/setup-node@v5
18+
- name: Setup Bun
19+
uses: oven-sh/setup-bun@v2
2020
with:
21-
node-version: '24'
22-
registry-url: 'https://registry.npmjs.org'
23-
cache: 'npm'
21+
bun-version: latest
2422

25-
- run: npm ci
23+
- run: bun install
2624

27-
- run: npm run typecheck
25+
- run: bun run typecheck
2826

29-
- run: npm run build
27+
- run: bun run build
3028

3129
- name: Run tests
32-
run: npm test
30+
run: bun test
3331

3432
- name: Check release state
3533
id: release_state
@@ -54,6 +52,13 @@ jobs:
5452
echo "github_release_exists=false" >> "$GITHUB_OUTPUT"
5553
fi
5654
55+
- name: Setup Node.js for npm publish
56+
if: steps.release_state.outputs.npm_published == 'false'
57+
uses: actions/setup-node@v5
58+
with:
59+
node-version: '24'
60+
registry-url: 'https://registry.npmjs.org'
61+
5762
- name: Publish to npm
5863
if: steps.release_state.outputs.npm_published == 'false'
5964
run: npm publish --access public

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# dependencies (bun install)
22
node_modules
3+
package-lock.json
34

45
# output
56
out
@@ -37,6 +38,9 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
3738
docs/plans/
3839
.sisyphus
3940

41+
# CodeRabbit configuration (optional AI code review tool)
42+
.coderabbit.yaml
43+
4044
# test artifacts & temporary databases
4145
*.test.db
4246
*.tmp.db

0 commit comments

Comments
 (0)