Skip to content

Commit cc90be5

Browse files
author
Lucas McDonald
committed
m
1 parent 2862f82 commit cc90be5

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/prod-release.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ permissions:
44
id-token: write
55

66
on:
7-
pull_request:
87
workflow_dispatch:
98
inputs:
109
version_bump:
@@ -55,14 +54,13 @@ jobs:
5554
run: |
5655
git config --global user.name "aws-crypto-tools-ci-bot"
5756
git config --global user.email "no-reply@noemail.local"
58-
git checkout ${{ github.head_ref }} # Use PR branch or current branch
57+
git checkout $BRANCH
5958
6059
- name: Version packages (dry run - no push)
6160
run: |
62-
# For testing: no push to avoid modifying master branch
63-
npx lerna version --conventional-commits --no-push --yes ${VERSION_BUMP:+$VERSION_BUMP --force-publish}
64-
# TODO: uncomment line below and remove line above when adding publish step
65-
# npx lerna version --conventional-commits --git-remote origin --yes ${VERSION_BUMP:+$VERSION_BUMP --force-publish}
61+
# Generate new version and CHANGELOG entry and push it
62+
npx lerna version --conventional-commits --git-remote origin --yes ${VERSION_BUMP:+$VERSION_BUMP --force-publish}
63+
# Log the commit for posterity
6664
git log -n 1
6765
6866
# Once semantic versioning has run and bumped versions, publish to npm

0 commit comments

Comments
 (0)