Skip to content

Commit

Permalink
fix(publishing): Apply conventional commit AFTER running 'gha - get b…
Browse files Browse the repository at this point in the history
…umped packages'
  • Loading branch information
christopherthielen committed Jul 17, 2021
1 parent ffffdc0 commit 8318ba8
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/lerna-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,17 @@ jobs:
steps:
- uses: actions/checkout@v2

- run: |
- name: git - configure commit user
run: |
git config user.name spinnakerbot
git config user.email spinnakerbot@spinanker.io
- uses: actions/setup-node@v1
name: node - setup
with:
node-version: ${{ env.NODE_VERSION }}

- name: Get yarn cache
- name: yarn - get cache dir
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

Expand All @@ -34,21 +36,23 @@ jobs:
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
- name: yarn - Install Dependencies
run: yarn --frozen-lockfile

- name: Bump packages
- name: lerna - Bump packages
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
- name: gha - get bumped packages
id: bumps
run: |
.github/gha_output_bumped_packages.sh
.github/gha_output_changelog.sh
- name: git - use conventional commit
run: |
git commit --amend -m "$(git log -1 --pretty=%B | sed -e 's/^Publish/chore(publish): publish packages/')"
- name: Create Pull Request
id: createpullrequest
if: ${{ steps.bumps.outputs.bumps != '' }}
Expand Down

0 comments on commit 8318ba8

Please sign in to comment.