Skip to content

Commit

Permalink
chore: release script - push tag and commit manually (#8897)
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr authored Nov 1, 2024
1 parent 26c765b commit 4157a6d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lerna-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,11 @@ BUMP=$1
if [ "x$BUMP" == "x" ]; then
BUMP=patch
fi
yarn lerna version --create-release=github --conventional-commits --exact $BUMP

# In publish workflow we need to detect branch for tags from github.event.base_ref
# It's possible only when GitHub receives information of tag from separate push
# Lerna uses single push for commit & tag, that's why --no-push is passed and pushed manually
yarn lerna version --create-release=github --conventional-commits --exact --no-push $BUMP
git push -u origin HEAD
# commitdate doesn't work with lerna tags :( version:refname is not an option, because we have LTS branches
git push origin v$(cat lerna.json | jq -r '.version')

0 comments on commit 4157a6d

Please sign in to comment.