Skip to content

Commit

Permalink
chore: Refactor release workflow to allow workflow execution on gener…
Browse files Browse the repository at this point in the history
…ated PRs (#13095)
  • Loading branch information
jimblanc committed Mar 18, 2024
1 parent 5d4ccd6 commit 25adcfe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/callable-npm-publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
run: |
yarn run docs
git add ./docs/api/
git commit -m "chore(release): update API docs [ci skip]"
git commit -m "chore(release): update API docs [skip release]"
- name: Push post release changes to the release branch
working-directory: ./amplify-js
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/push-latest-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ on:

jobs:
e2e:
# Skip the release workflow if the head commit in the triggering branch contains [skip release]
if: ${{ !contains(github.event.head_commit.message, '[skip release]') }}
secrets: inherit
uses: ./.github/workflows/callable-release-verification.yml
release:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"unlink-all": "lerna exec --no-bail --parallel -- yarn unlink; exit 0",
"publish:preid": "./scripts/preid-env-vars-exist.sh && lerna publish --canary --force-publish --dist-tag=${PREID_PREFIX} --preid=${PREID_PREFIX}${PREID_HASH_SUFFIX} --yes",
"publish:main": "lerna publish --canary --force-publish --dist-tag=unstable --preid=unstable${PREID_HASH_SUFFIX} --yes",
"publish:release": "lerna publish --conventional-commits --message 'chore(release): Publish [ci skip]' --yes",
"publish:release": "lerna publish --conventional-commits --message 'chore(release): Publish [skip release]' --yes",
"publish:v5-stable": "lerna publish --conventional-commits --yes --dist-tag=stable-5 --message 'chore(release): Publish [ci skip]' --no-verify-access",
"publish:verdaccio": "lerna publish --canary --force-publish --no-push --dist-tag=unstable --preid=unstable --yes",
"ts-coverage": "lerna run ts-coverage",
Expand Down

0 comments on commit 25adcfe

Please sign in to comment.