Publish NPM Package #61
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish NPM Package | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
permissions: | |
id-token: write | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build Setup | |
uses: ./.github/actions/build-setup | |
with: | |
registry-url: 'https://registry.npmjs.org' | |
- run: npm publish --provenance --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Send message to Slack channel | |
if: success() | |
uses: slackapi/[email protected] | |
with: | |
channel-id: 'CSF7TG6N5' | |
payload: | | |
{ | |
"blocks": [ | |
{ | |
"type": "header", | |
"text": { | |
"type": "plain_text", | |
"text": ":mega: bpmn-visualization Release ${{github.ref_name}}", | |
"emoji": true | |
} | |
}, | |
{ | |
"type": "divider" | |
}, | |
{ | |
"type": "section", | |
"text": { | |
"type": "mrkdwn", | |
"text": "- <https://github.com/${{github.repository}}/tree/${{github.ref_name}}|Tag> done :heavy_check_mark: \n - Package published on <https://www.npmjs.com/package/bpmn-visualization|NPM> :heavy_check_mark:" | |
} | |
}, | |
{ | |
"type": "divider" | |
}, | |
{ | |
"type": "section", | |
"text": { | |
"type": "mrkdwn", | |
"text": "See the next steps <https://github.com/${{github.repository}}/blob/master/docs/contributors/maintainers.md#github-issues-milestones-and-projects-update|here> :arrow_left:" | |
} | |
} | |
] | |
} | |
env: | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
- name: Notify bpmn-visualization-R repository of new bpmn-visualization version | |
uses: ./.github/actions/notify-PA-repo-of-new-version | |
with: | |
PA_REPOSITORY: 'bpmn-visualization-R' | |
TOKEN: ${{ secrets.GH_RELEASE_TOKEN }} |