Skip to content
This repository was archived by the owner on Nov 22, 2022. It is now read-only.

Commit 9f48343

Browse files
authored
(ci) Update Publish Workflow (#164)
Update publish workflow to only run the `npm publish` command when we create the Github Release (ignore updates). Include small change for readability.
1 parent c0f5268 commit 9f48343

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/publish_package.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
on: release
1+
on:
2+
release:
3+
types: [published]
24
name: Publish Package
35
jobs:
46
publish-npm:
@@ -9,6 +11,7 @@ jobs:
911
with:
1012
node-version: 10.15.3
1113
registry-url: https://registry.npmjs.org/
12-
- run: npm install && npm publish --access public
14+
- run: npm install
15+
- run: npm publish --access public
1316
env:
1417
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)