Skip to content

Commit 582caac

Browse files
chore: fix github action
1 parent 9ee4bec commit 582caac

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,21 @@ jobs:
1818
node-version: '20'
1919
registry-url: 'https://registry.npmjs.org'
2020

21+
- name: Install pnpm
22+
run: npm install -g pnpm
23+
2124
- name: Install dependencies
2225
run: pnpm install
2326

2427
- name: Build
2528
run: pnpm build
2629

30+
- name: Dry run publish (pre-release only)
31+
if: ${{ github.event.release.prerelease == true }}
32+
run: pnpm publish --dry-run
33+
2734
- name: Publish to npm
28-
run: npm publish
35+
if: ${{ github.event.release.prerelease == false }}
36+
run: pnpm publish
2937
env:
3038
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)