Skip to content

Commit

Permalink
fix(publishing): only change commit message if the branch is ahead of…
Browse files Browse the repository at this point in the history
… the remote because lerna version created a commit
  • Loading branch information
christopherthielen committed Jul 27, 2021
1 parent 5a4c0b1 commit 39679ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/package-bump-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ jobs:
- name: lerna - Bump packages
run: |
npx lerna version --yes --no-push --conventional-commits
if [[ $(git rev-list --count @{u}..HEAD) -ne 0 ]] ; then
# Fix the lerna commit message to also use conventional commits
git commit --amend -m "$(git log -1 --pretty=%B | sed -e 's/^Publish/chore(publish): publish packages/')"
git commit --amend -m "$(git log -1 --pretty=%B | sed -e 's/^Publish/chore(publish): publish packages/')"
fi
- name: gha - get bumped packages
id: bumps
Expand Down

0 comments on commit 39679ba

Please sign in to comment.