Skip to content

Commit 0e11288

Browse files
committed
Account for npm-version making a tag of its own
1 parent 0209119 commit 0e11288

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ jobs:
6161
MESSAGE="Build for $(git rev-parse --short HEAD)"
6262
git commit --allow-empty -m "$MESSAGE"
6363
64-
# Create an annotated tag and push it to origin
65-
git tag -a -m "Release $TAG" $TAG
64+
# Create an annotated tag and push it to origin. Using -f to overwrite
65+
# the tag that `npm version` made for us in a previous step
66+
git tag -f -a -m "Release $TAG" $TAG
6667
git push origin $TAG
6768
6869
release:

0 commit comments

Comments
 (0)