Skip to content

Commit cd63813

Browse files
committed
fix: release workflow
1 parent 4efac04 commit cd63813

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,25 @@ jobs:
2424
- uses: actions/checkout@v4
2525
if: ${{ steps.release.outputs.release_created }}
2626

27-
- run: npm install
27+
- uses: pnpm/action-setup@v2
28+
if: ${{ steps.release.outputs.release_created }}
29+
with:
30+
version: 8
31+
32+
- uses: actions/setup-node@v4
33+
if: ${{ steps.release.outputs.release_created }}
34+
with:
35+
node-version: '22'
36+
registry-url: 'https://registry.npmjs.org'
37+
cache: 'pnpm'
38+
39+
- run: pnpm install
40+
if: ${{ steps.release.outputs.release_created }}
41+
42+
- run: pnpm build
2843
if: ${{ steps.release.outputs.release_created }}
2944

30-
- run: npm publish --access=public --provenance
45+
- run: pnpm publish --access=public --provenance
3146
if: ${{ steps.release.outputs.release_created }}
3247
env:
3348
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)