We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 87b9b0c + 7f515b7 commit fa62336Copy full SHA for fa62336
ci/npm-publish.yml
@@ -1,12 +1,8 @@
1
name: Node.js Package
2
3
on:
4
- pull_request:
5
- branches:
6
- - master
7
- push:
8
9
+ release:
+ types: [created]
10
11
jobs:
12
build:
@@ -28,6 +24,7 @@ jobs:
28
24
with:
29
25
node-version: 12
30
26
registry-url: https://registry.npmjs.org/
27
+ - run: npm ci
31
- run: npm publish
32
env:
33
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
@@ -42,6 +39,7 @@ jobs:
42
39
43
40
registry-url: https://npm.pkg.github.com/
44
41
scope: '@your-github-username'
45
46
47
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
0 commit comments