Skip to content

Commit bbc8d76

Browse files
committed
feat(ci): fix release workflow
1 parent c8a5c2e commit bbc8d76

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,33 @@ jobs:
1111
release:
1212
name: Release
1313
runs-on: ubuntu-latest
14+
permissions:
15+
id-token: write
16+
contents: read
17+
1418
steps:
1519
- name: Checkout Repo
1620
uses: actions/checkout@v4
1721

22+
- name: Setup pnpm
23+
uses: pnpm/action-setup@v2
24+
with:
25+
version: 9 # 必要なバージョンを指定
26+
1827
- name: Setup Node.js 20.x
1928
uses: actions/setup-node@v4
2029
with:
2130
node-version: 20.x
2231
registry-url: 'https://registry.npmjs.org'
32+
cache: pnpm
2333

2434
- name: Install dependencies 🧹
25-
run: npm ci
35+
run: pnpm install --frozen-lockfile
2636

2737
- name: Build 🔨
28-
run: npm run build
38+
run: pnpm run build
2939

3040
- name: Publish 🎁
31-
run: npm publish --provenance --access public
41+
run: pnpm publish --provenance --access public
3242
env:
3343
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)