Skip to content

Commit 018ff82

Browse files
committed
chore: more comments
1 parent 66177f0 commit 018ff82

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lerna-publish.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ if [ "x$BUMP" == "x" ]; then
1212
BUMP=patch
1313
fi
1414

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
1517
yarn lerna version --create-release=github --conventional-commits --exact --no-push $BUMP
1618
git push -u origin HEAD
17-
git push origin $(git tag --sort=committerdate | grep -E '[0-9]' | tail -1)
19+
# commitdate doesn't work with lerna tags :( so we have to sort by version)
20+
git push origin $(git tag --sort version:refname | tail -1)

0 commit comments

Comments
 (0)