Skip to content

Commit 610b5db

Browse files
authored
Restore original CI process (#61)
1 parent 9cd7553 commit 610b5db

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

.github/workflows/publish_release.yml

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

0 commit comments

Comments
 (0)