Skip to content

Commit 8b30dcd

Browse files
author
Lucas McDonald
committed
test on pr
1 parent 41af56a commit 8b30dcd

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/prod-release.yml

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

66
on:
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

0 commit comments

Comments
 (0)