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 name: Node.js Package
on: on:
pull_request: release:
branches: types: [created]
- master
push:
branches:
- master
jobs: jobs:
build: build:
@@ -28,6 +24,7 @@ jobs:
with: with:
node-version: 12 node-version: 12
registry-url: https://registry.npmjs.org/ registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish - run: npm publish
env: env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}} NODE_AUTH_TOKEN: ${{secrets.npm_token}}
@@ -42,6 +39,7 @@ jobs:
node-version: 12 node-version: 12
registry-url: https://npm.pkg.github.com/ registry-url: https://npm.pkg.github.com/
scope: '@your-github-username' scope: '@your-github-username'
- run: npm ci
- run: npm publish - run: npm publish
env: env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}