Skip to content

Commit ff25ed9

Browse files
committed
fix: use Bun for install/build in CI workflow [patch]
- Add oven-sh/setup-bun@v2 action for Bun support - Replace npm ci with bun install (works with bun.lock) - Replace npm run with bun run for building - Keep npm publish for provenance (Bun doesn't support --provenance yet) Fixes CI failure due to missing package-lock.json
1 parent d15d547 commit ff25ed9

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,21 @@ jobs:
2222
fetch-depth: 0
2323
token: ${{ secrets.GITHUB_TOKEN }}
2424

25+
# Setup Bun for installing dependencies and building
26+
- name: Setup Bun
27+
uses: oven-sh/setup-bun@v2
28+
with:
29+
bun-version: latest
30+
31+
# Setup Node.js for npm publish with provenance
2532
- name: Setup Node.js
2633
uses: actions/setup-node@v4
2734
with:
2835
node-version: '20'
2936
registry-url: 'https://registry.npmjs.org'
3037

31-
- name: Install dependencies
32-
run: npm ci
38+
- name: Install dependencies with Bun
39+
run: bun install
3340

3441
- name: Determine version bump type
3542
id: bump-type
@@ -78,9 +85,10 @@ jobs:
7885
run: |
7986
npm version ${{ steps.new-version.outputs.version }} --no-git-tag-version
8087
81-
- name: Build package
82-
run: npm run package
88+
- name: Build package with Bun
89+
run: bun run package
8390

91+
# Use npm for publishing with provenance (Bun doesn't support --provenance yet)
8492
- name: Publish to npm with provenance
8593
run: npm publish --provenance --access public
8694
env:
@@ -104,6 +112,7 @@ jobs:
104112
Automated release v${{ steps.new-version.outputs.version }}
105113
106114
✅ Published with npm provenance
115+
🚀 Built with Bun
107116
108117
Changes in this release:
109118
- ${{ github.event.head_commit.message }}

0 commit comments

Comments
 (0)