File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ permissions:
44 id-token : write
55
66on :
7+ pull_request :
78 workflow_dispatch :
89 inputs :
910 version_bump :
@@ -54,13 +55,14 @@ jobs:
5455 run : |
5556 git config --global user.name "aws-crypto-tools-ci-bot"
5657 git config --global user.email "no-reply@noemail.local"
57- git checkout $BRANCH
58+ git checkout ${{ github.head_ref }} # Use PR branch or current branch
5859
5960 - name : Version packages (dry run - no push)
6061 run : |
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
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}
6466 git log -n 1
6567
6668 # Once semantic versioning has run and bumped versions, publish to npm
You can’t perform that action at this time.
0 commit comments