Skip to content

Publish NPM Package #61

Publish NPM Package

Publish NPM Package #61

Workflow file for this run

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 }}