Skip to content

Commit b8599e5

Browse files
author
Lucas McDonald
committed
m
1 parent 39efcd5 commit b8599e5

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/prod-release.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ permissions:
33
contents: read
44

55
on:
6-
# TODO: remove pull_request once tested in PR
7-
pull_request:
86
workflow_dispatch:
97
inputs:
108
version_bump:
@@ -217,14 +215,13 @@ jobs:
217215
run: |
218216
git config --global user.name "aws-crypto-tools-ci-bot"
219217
git config --global user.email "[email protected]"
220-
git checkout ${{ github.head_ref }} # Use PR branch or current branch
218+
git checkout $BRANCH
221219
222220
- name: Version packages (dry run - no push)
223221
run: |
224-
# For testing: no push to avoid modifying master branch
225-
npx lerna version --conventional-commits --no-push --yes ${VERSION_BUMP:+$VERSION_BUMP --force-publish}
226-
# TODO: uncomment line below and remove line above when adding publish step
227-
# npx lerna version --conventional-commits --git-remote origin --yes ${VERSION_BUMP:+$VERSION_BUMP --force-publish}
222+
# Generate new version and CHANGELOG entry and push it
223+
npx lerna version --conventional-commits --git-remote origin --yes ${VERSION_BUMP:+$VERSION_BUMP --force-publish}
224+
# Log the commit for posterity
228225
git log -n 1
229226
230227
# Once semantic versioning has run and bumped versions, publish to npm

0 commit comments

Comments
 (0)