File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -35,18 +35,15 @@ jobs:
3535 uses : actions/setup-node@v1
3636 with :
3737 node-version : " 14"
38- registry-url : https://registry.npmjs.org/
38+ registry-url : " https://registry.npmjs.org/"
3939
4040 - name : Install npm dependencies
41- id : npm-install
42- run : npm install
41+ run : npm ci
4342
4443 - name : Publish @withabound/node-sdk
45- id : npm-publish
46- uses : JS-DevTools/npm-publish@v1
47- with :
48- token : ${{ secrets.NPM_ACCESS_TOKEN }}
49- access : public
44+ run : npm publish --access public
45+ env :
46+ NODE_AUTH_TOKEN : ${{ secrets.NPM_ACCESS_TOKEN }}
5047
5148 - uses : act10ns/slack@v1
5249 with :
@@ -55,10 +52,13 @@ jobs:
5552 channel : " #deployments"
5653 if : always()
5754
58- - name : Slack Notification
59- if : steps.npm-publish.outputs.type != 'none'
60- uses : tokorom/action-slack-incoming-webhook@main
55+ slack_notification :
56+ runs-on : ubuntu-latest
57+ needs : publish_release
58+ steps :
59+ - uses : tokorom/action-slack-incoming-webhook@main
60+ with :
61+ text : " @withabound/node-sdk@${RELEASE_TAG_NAME:1} has been published."
6162 env :
6263 INCOMING_WEBHOOK_URL : ${{ secrets.SUCCESS_DEPLOYMENT_DX_URL }}
63- with :
64- text : " @withabound/node-sdk@${{ steps.npm-publish.outputs.version }} has been published."
64+ RELEASE_TAG_NAME : ${{ github.event.release.tag_name }}
You can’t perform that action at this time.
0 commit comments