Skip to content

Commit

Permalink
chore(changesets): log values from changesets step
Browse files Browse the repository at this point in the history
  • Loading branch information
alessbell committed Jan 3, 2023
1 parent b0ad01e commit fa89269
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ jobs:
if: steps.check_files.outputs.files_exists == 'true' && startsWith(github.event.head_commit.message, 'Version Packages')
run: npm run changeset-publish

- name: Echo values from changesets step
if: steps.changesets.outcome == 'success'
run: echo "${{steps.changesets.outcome}} v${{ fromJson(steps.changesets.outputs.publishedPackages)[0].version }}"

- name: Send a Slack notification on publish
if: steps.changesets.outcome == 'success'
id: slack
Expand All @@ -75,6 +79,6 @@ jobs:
# a comma-delimited list of channel IDs
channel-id: 'C01PS0CB41G'
# For posting a simple plain text message
slack-message: "Published @apollo/client v${{ fromJson(steps.changesets.outputs.publishedPackages)[0].version }}"
slack-message: "Published v${{ fromJson(steps.changesets.outputs.publishedPackages)[0].version }} 🚀"
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 comments on commit fa89269

Please sign in to comment.