7878 commit : ' chore: version-packages' # the commit message to use
7979 setupGitUser : true
8080 env :
81- HOME : ${{ github.workspace }} # See https://github.com/changesets/action/issues/147
8281 GITHUB_TOKEN : ${{ env.GITHUB_TOKEN }}
83- NPM_CONFIG_PROVENANCE : ' true'
8482
8583 - name : Publish previews to Stackblitz on PR
8684 if : steps.changesets.outputs.published == 'false'
@@ -101,6 +99,15 @@ jobs:
10199 env :
102100 GITHUB_TOKEN : ${{ env.GITHUB_TOKEN }}
103101
102+ - name : Format published packages for Slack
103+ if : steps.changesets.outputs.published == 'true'
104+ id : format-packages
105+ run : |
106+ PACKAGES=$(echo '${{ steps.changesets.outputs.publishedPackages }}' | jq -r '.[] | ":package: *\(.name)* `\(.version)`"')
107+ echo "formatted<<EOF" >> $GITHUB_OUTPUT
108+ echo "$PACKAGES" >> $GITHUB_OUTPUT
109+ echo "EOF" >> $GITHUB_OUTPUT
110+
104111 - name : Send GitHub Action data to a Slack workflow
105112 if : steps.changesets.outputs.published == 'true'
106113@@ -109,7 +116,7 @@ jobs:
109116 webhook : ${{ env.SLACK_WEBHOOK_URL }}
110117 webhook-type : webhook-trigger
111118 payload : |
112- publishedPackages: steps.changesets .outputs.publishedPackages
119+ publishedPackages: ${{ steps.format-packages .outputs.formatted }}
113120
114121 - name : Run code coverage
115122 uses : codecov/codecov-action@v5
0 commit comments