Skip to content

Commit 8a55062

Browse files
committed
Add update publish
1 parent 403cb5e commit 8a55062

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ jobs:
2828
- run: yarn install
2929
- name: Update package.json version
3030
run: |
31-
git fetch --tags
32-
TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
31+
TAG=${GITHUB_REF#refs/tags/}
3332
jq --arg version "$TAG" '.version = $version' package.json > tmp.$$.json && mv tmp.$$.json package.json
3433
- uses: JS-DevTools/npm-publish@v3
3534
with:

0 commit comments

Comments
 (0)