fix absent node_modules for npm publish

This commit is contained in:
Zach Guo
2019-08-20 15:00:38 -07:00
committed by GitHub
parent b32cad54d6
commit 654b83e0f3
+2
View File
@@ -28,6 +28,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 +43,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}}