Skip to content

Commit cb59a4e

Browse files
committed
chore: support publishing v5
1 parent 2a3ecff commit cb59a4e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,10 @@ jobs:
3838
env:
3939
TAG_NAME: ${{ github.ref_name }}
4040
- run: npm publish --provenance --access public
41+
if: "!startsWith(github.ref_name, 'v5.')"
42+
env:
43+
NODE_AUTH_TOKEN: ${{ secrets.npm_secret }}
44+
- run: npm publish --provenance --access public --tag v5
45+
if: "startsWith(github.ref_name, 'v5.')"
4146
env:
4247
NODE_AUTH_TOKEN: ${{ secrets.npm_secret }}

0 commit comments

Comments
 (0)