Skip to content

Commit

Permalink
chore(changesets): echo changesets outcome
Browse files Browse the repository at this point in the history
  • Loading branch information
alessbell committed Dec 21, 2022
1 parent 82efb1f commit d1f04d9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Enter alpha prerelease mode
# If .changeset/pre.json does not exist and we did not recently exit
# prerelease mode, enter prerelease mode with tag alpha
if: ${{ steps.check_files.outputs.files_exists == 'false' && !contains(github.event.head_commit.message, 'Exit prerelease')}}
if: steps.check_files.outputs.files_exists == 'false' && !contains(github.event.head_commit.message, 'Exit prerelease')
run: npx changeset pre enter alpha

- name: Create alpha release PR
Expand All @@ -61,9 +61,12 @@ jobs:
id: changesets
# Only run publish if we're still in pre mode and the last commit was
# via an automatically created Version Packages PR
if: ${{ steps.check_files.outputs.files_exists == 'true' && startsWith(github.event.head_commit.message, 'Version Packages')}} }}
if: steps.check_files.outputs.files_exists == 'true' && startsWith(github.event.head_commit.message, 'Version Packages')
run: npm run changeset-publish

- name: Echo Changesets outcome
run: echo "${{ steps.changesets.outcome == 'success' }} ${{ steps.changesets.outputs.published == 'true' }}"

- name: Send a Slack notification on publish
if: steps.changesets.outcome == 'success' && steps.changesets.outputs.published == 'true'
id: slack
Expand Down

0 comments on commit d1f04d9

Please sign in to comment.