File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -35,16 +35,16 @@ jobs:
3535 uses : actions/setup-node@v1
3636 with :
3737 node-version : " 14"
38- registry-url : " https://registry.npmjs.org/"
39- always-auth : true
4038
4139 - name : Install npm dependencies
4240 run : npm ci
4341
4442 - name : Publish @withabound/node-sdk
45- run : npm publish --access public
46- env :
47- NODE_AUTH_TOKEN : ${{ secrets.NPM_ACCESS_TOKEN }}
43+ id : npm-publish
44+ uses : JS-DevTools/npm-publish@v1
45+ with :
46+ token : ${{ secrets.NPM_ACCESS_TOKEN }}
47+ access : public
4848
4949 - uses : act10ns/slack@v1
5050 with :
@@ -53,13 +53,10 @@ jobs:
5353 channel : " #deployments"
5454 if : always()
5555
56- slack_notification :
57- runs-on : ubuntu-latest
58- needs : publish_release
59- steps :
60- - uses : tokorom/action-slack-incoming-webhook@main
56+ - name : Slack notification
57+ if : steps.npm-publish.outputs.type != 'none'
58+ uses : tokorom/action-slack-incoming-webhook@main
6159 with :
62- text : " @withabound/node-sdk@${RELEASE_TAG_NAME:1 } has been published."
60+ text : " @withabound/node-sdk@${{ steps.npm-publish.outputs.version } } has been published."
6361 env :
6462 INCOMING_WEBHOOK_URL : ${{ secrets.SUCCESS_DEPLOYMENT_DX_URL }}
65- RELEASE_TAG_NAME : ${{ github.event.release.tag_name }}
You can’t perform that action at this time.
0 commit comments