chore(release): create annotated tag so --follow-tags pushes it
A lightweight tag is skipped by 'git push --follow-tags', so v$VERSION stayed local-only and 'gh release create' failed at the end of the release. Use an annotated tag (-a) so it pushes with the release commit.
This commit is contained in:
parent
16f39f2b73
commit
513186d951
1 changed files with 3 additions and 1 deletions
|
|
@ -141,8 +141,10 @@ git commit -m "chore(release): ${NEW_VERSION}"
|
||||||
echo -e "${GREEN}✅ Release commit created${NC}\n"
|
echo -e "${GREEN}✅ Release commit created${NC}\n"
|
||||||
|
|
||||||
# Step 8: Create git tag
|
# Step 8: Create git tag
|
||||||
|
# Annotated (-a) so `git push --follow-tags` below actually pushes it. A lightweight tag is
|
||||||
|
# skipped by --follow-tags, which leaves the tag local-only and makes `gh release create` fail.
|
||||||
echo -e "${BLUE}7️⃣ Creating git tag v${NEW_VERSION}...${NC}"
|
echo -e "${BLUE}7️⃣ Creating git tag v${NEW_VERSION}...${NC}"
|
||||||
git tag "v${NEW_VERSION}"
|
git tag -a "v${NEW_VERSION}" -m "Release v${NEW_VERSION}"
|
||||||
echo -e "${GREEN}✅ Tag created${NC}\n"
|
echo -e "${GREEN}✅ Tag created${NC}\n"
|
||||||
|
|
||||||
# Step 9: Push to GitHub
|
# Step 9: Push to GitHub
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue