Skip to content

Commit c929f95

Browse files
author
郑培鑫
committed
ci: update workflows
1 parent a94fb36 commit c929f95

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
on:
22
push:
3-
branches:
4-
- dev
3+
tags:
4+
- 'v*'
55
permissions:
66
contents: write
77
pull-requests: write
@@ -15,15 +15,15 @@ jobs:
1515
with:
1616
release-type: node
1717
- uses: actions/checkout@v4
18-
if: ${{ steps.release.outputs.release_created }}
1918
- uses: actions/setup-node@v4
2019
with:
21-
node-version: 12
20+
node-version: 16
2221
registry-url: 'https://registry.npmjs.org'
23-
if: ${{ steps.release.outputs.release_created }}
24-
- run: npm ci
25-
if: ${{ steps.release.outputs.release_created }}
26-
- run: npm publish
27-
env:
28-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
29-
if: ${{ steps.release.outputs.release_created }}
22+
- uses: pnpm/action-setup@v3
23+
with:
24+
version: 8
25+
- run: pnpm ci
26+
- run: pnpm build
27+
- uses: JS-DevTools/npm-publish@v3
28+
with:
29+
token: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)