File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,11 +40,15 @@ jobs:
4040 uses : changesets/action@v1
4141 with :
4242 version : npm run changeset-version
43- publish : npm run changeset-publish
43+ publish : npm run changeset-publish -- --tag next
4444 env :
4545 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4646 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
4747
48+ - name : Echo values from changesets step
49+ if : steps.changesets.outcome == 'success'
50+ run : echo "${{steps.changesets.outcome}} v${{ fromJson(steps.changesets.outputs.publishedPackages)[0].version }}"
51+
4852 - name : Send a Slack notification on publish
4953 if : steps.changesets.outcome == 'success' && steps.changesets.outputs.published == 'true'
5054 id : slack
5660 # a comma-delimited list of channel IDs
5761 channel-id : ' C01PS0CB41G'
5862 # For posting a simple plain text message
59- slack-message : " Published @apollo/client v${{ fromJson(steps.changesets.outputs.publishedPackages)[0].version }}"
63+ slack-message : " Published v${{ fromJson(steps.changesets.outputs.publishedPackages)[0].version }}"
6064 env :
6165 SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
You can’t perform that action at this time.
0 commit comments