Skip to content

Commit 01ad1f3

Browse files
committed
ci: github release step use just-created tag name
1 parent debfac5 commit 01ad1f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
run: |
3434
git push -f
3535
git push --tags
36+
echo "TAG_NAME=$(git describe)" >> "$GITHUB_ENV"
3637
- name: Publish to NPM
3738
run: npm publish
3839
env:
@@ -42,6 +43,5 @@ jobs:
4243
with:
4344
draft: false
4445
body_path: CHANGELOG.md
45-
name: ${{ steps.version.outputs.version }}
46-
tag_name: ${{ github.ref }}
47-
token: ${{ github.token }}
46+
name: env.TAG_NAME
47+
tag_name: env.TAG_NAME

0 commit comments

Comments
 (0)