Skip to content

Commit 854b7db

Browse files
committed
ci: update publish workflow
1 parent e4c377c commit 854b7db

1 file changed

Lines changed: 20 additions & 8 deletions

File tree

.github/workflows/publish.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,27 @@ jobs:
1313
id-token: write
1414
steps:
1515
- uses: actions/checkout@v4
16-
- uses: oven-sh/setup-bun@v2
17-
- run: bun install --frozen-lockfile
18-
- run: bun run build
19-
- run: bun run test
20-
- uses: actions/setup-node@v4
16+
17+
- name: Setup Bun
18+
uses: oven-sh/setup-bun@v2
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
2122
with:
22-
node-version: 22
23-
registry-url: https://registry.npmjs.org
24-
- run: npm publish --provenance --access public
23+
node-version: '22'
24+
registry-url: 'https://registry.npmjs.org'
25+
26+
- name: Update npm (11.5.1+ 必須)
27+
run: npm install -g npm@latest
28+
29+
- name: Install dependencies
30+
run: bun install
31+
32+
- name: Build
33+
run: bun run build
34+
35+
- name: Publish
36+
run: npm publish --provenance --access public
2537

2638
publish-jsr:
2739
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)