Skip to content

Commit 9f47c71

Browse files
committed
feat: Use bun as package manager
1 parent 58ede95 commit 9f47c71

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,16 @@ jobs:
1717
uses: actions/checkout@v4
1818
with:
1919
fetch-depth: 0
20-
- name: Setup Node.js
21-
uses: actions/setup-node@v4
20+
- name: Setup Bun
21+
uses: oven-sh/setup-bun@v1
2222
with:
23-
node-version: 'lts/*'
23+
bun-version: latest
24+
2425
- name: Install dependencies
25-
run: |
26-
if [ -f bun.lockb ]; then
27-
npm install -g bun
28-
bun install
29-
else
30-
npm install
31-
fi
26+
run: bun install
27+
3228
- name: Release
3329
env:
3430
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3531
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
36-
run: npx semantic-release
32+
run: bunx semantic-release

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"release": {
1717
"branches": [
18-
"main"
18+
"prod"
1919
],
2020
"plugins": [
2121
"@semantic-release/commit-analyzer",

0 commit comments

Comments
 (0)