Skip to content

Commit acfb160

Browse files
committed
chore: add-slack-message-on-publish
1 parent 027fd06 commit acfb160

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,15 @@ jobs:
7575
NPM_CONFIG_PROVENANCE: 'true'
7676
NPM_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
7777

78+
- name: Send GitHub Action data to a Slack workflow
79+
if: steps.changesets.outputs.published === 'true'
80+
uses: slackapi/slack-github-action@v2.0.0
81+
with:
82+
payload-delimiter: '_'
83+
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
84+
webhook-type: webhook-trigger
85+
payload: steps.changesets.outputs.publishedPackages
86+
7887
- uses: codecov/codecov-action@v5
7988
with:
8089
files: ./packages/**/coverage/*.xml

0 commit comments

Comments
 (0)