Merge pull request #56 from zachguo/patch-1

fix npm-publish.yml
This commit is contained in:
Andy McKay
2019-10-07 13:55:19 -07:00
committed by GitHub
+4 -6
View File
@@ -1,12 +1,8 @@
name: Node.js Package
on:
pull_request:
branches:
- master
push:
branches:
- master
release:
types: [created]
jobs:
build:
@@ -28,6 +24,7 @@ jobs:
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
@@ -42,6 +39,7 @@ jobs:
node-version: 12
registry-url: https://npm.pkg.github.com/
scope: '@your-github-username'
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}