Skip to content

Commit

Permalink
ci: fix publish action to fullfill github tags requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrCai0907 committed Aug 23, 2023
1 parent 8561f6a commit f14fed8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: publish
on:
push:
tags:
- "*"
- "v*"

jobs:
publish:
Expand All @@ -16,7 +16,7 @@ jobs:
- name: Install dependencies
run: npm ci

- run: npm version $(echo "${GITHUB_REF}" | sed 's/refs\/tags\///') --git-tag-version false
- run: npm version $(echo "${GITHUB_REF}" | sed 's/refs\/tags\/v//') --git-tag-version false
- run: cat package.json
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down

0 comments on commit f14fed8

Please sign in to comment.