Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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')