Skip to content

Commit cdd94f2

Browse files
author
Lucas McDonald
committed
m
1 parent 998c005 commit cdd94f2

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
@@ -3,7 +3,6 @@ permissions:
33
contents: read
44

55
on:
6-
pull_request:
76
workflow_dispatch:
87
inputs:
98
version_bump:
@@ -124,14 +123,13 @@ jobs:
124123
run: |
125124
git config --global user.name "aws-crypto-tools-ci-bot"
126125
git config --global user.email "[email protected]"
127-
git checkout ${{ github.head_ref }} # Use PR branch or current branch
126+
git checkout $BRANCH
128127
129128
- name: Version packages (dry run - no push)
130129
run: |
131-
# For testing: no push to avoid modifying master branch
132-
npx lerna version --conventional-commits --no-push --yes ${VERSION_BUMP:+$VERSION_BUMP --force-publish}
133-
# TODO: uncomment line below and remove line above when adding publish step
134-
# npx lerna version --conventional-commits --git-remote origin --yes ${VERSION_BUMP:+$VERSION_BUMP --force-publish}
130+
# Generate new version and CHANGELOG entry and push it
131+
npx lerna version --conventional-commits --git-remote origin --yes ${VERSION_BUMP:+$VERSION_BUMP --force-publish}
132+
# Log the commit for posterity
135133
git log -n 1
136134
137135
# Once semantic versioning has run and bumped versions, publish to npm

0 commit comments

Comments
 (0)