Skip to content

Commit 2d36a3c

Browse files
committed
chore: Push tag and commit manually
1 parent 5827244 commit 2d36a3c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lerna-publish.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,11 @@ BUMP=$1
1111
if [ "x$BUMP" == "x" ]; then
1212
BUMP=patch
1313
fi
14-
yarn lerna version --create-release=github --conventional-commits --exact $BUMP
14+
15+
# In publish workflow we need to detect branch for tags from github.event.base_ref
16+
# It's possible only when GitHub receives information of tag from separate push
17+
# Lerna uses single push for commit & tag, that's why --no-push is passed and pushed manually
18+
yarn lerna version --create-release=github --conventional-commits --exact --no-push $BUMP
19+
git push -u origin HEAD
20+
# commitdate doesn't work with lerna tags :( version:refname is not an option, because we have LTS branches
21+
git push origin v$(cat lerna.json | jq -r '.version')

0 commit comments

Comments
 (0)