File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -11,4 +11,11 @@ BUMP=$1
1111if [ " x$BUMP " == " x" ]; then
1212 BUMP=patch
1313fi
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' )
You can’t perform that action at this time.
0 commit comments