Skip to content

Commit caba6c1

Browse files
authored
chore: publish to next tag, echo values from changesets step (apollographql#10407)
1 parent 5c5ca9b commit caba6c1

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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
@@ -56,6 +60,6 @@ jobs:
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 }}

0 commit comments

Comments
 (0)