Skip to content

Commit d5640cb

Browse files
authored
FIX: use npm publish command (#59)
1 parent 104284c commit d5640cb

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/publish_release.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)