Skip to content

Commit

Permalink
fix(publishing): Use conventional commit for publish commit; use SPIN…
Browse files Browse the repository at this point in the history
…NAKERBOT_TOKEN
  • Loading branch information
christopherthielen committed Jul 17, 2021
1 parent 4e09ec2 commit ffffdc0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/lerna-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ jobs:
run: yarn --frozen-lockfile

- name: Bump packages
run: npx lerna version --yes --no-push --conventional-commits
run: |
npx lerna version --yes --no-push --conventional-commits
# Use a conventional commit message for the Publish commit
git commit --amend -m "$(git log -1 --pretty=%B | sed -e 's/^Publish/chore(publish): publish packages/')"
- name: Get bumped packages
id: bumps
Expand All @@ -51,6 +54,8 @@ jobs:
if: ${{ steps.bumps.outputs.bumps != '' }}
uses: peter-evans/create-pull-request@v3
with:
# TODO: use a spinnakerbot Personal Access Token
github-token: '${{ secrets.SPINNAKERBOT_TOKEN }}'
commit-message: 'chore(package): Publish ${{ steps.bumps.outputs.bumps }}'
title: 'chore(package): Publish ${{ steps.bumps.outputs.bumps }}'
body: |
Expand Down

0 comments on commit ffffdc0

Please sign in to comment.