Skip to content

Commit be1206a

Browse files
fix(release): push only new tags instead of all tags
Previously `git push origin --tags` pushed all local tags, which fails when some tags already exist on the remote. Now each tag is pushed individually right after creation, making the step idempotent.
1 parent c972561 commit be1206a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/workflows/release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ jobs:
6969
tag="${name}@${version}"
7070
if ! git tag -l "$tag" | grep -q .; then
7171
git tag "$tag"
72+
git push origin "$tag"
7273
echo "Tagged $tag"
7374
NEW_PACKAGES="$NEW_PACKAGES $name"
7475
fi
7576
done
76-
git push origin --tags
7777
7878
# Create GitHub releases for each new tag
7979
for pkg in packages/*/; do

0 commit comments

Comments
 (0)