Skip to content

Commit 001184d

Browse files
authored
fix npm pkg publish
1 parent fbe02e3 commit 001184d

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3-
41
name: Node.js CI
52

63
on:
@@ -41,12 +38,6 @@ jobs:
4138

4239
- name: Publish to npm
4340
if: env.DEPLOY_PACKAGE == 'true'
44-
run: npm set registry https://registry.npmjs.org/ && npm publish --access public
41+
run: npm pack && npm publish --access public
4542
env:
46-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
47-
48-
- name: Publish to github
49-
if: env.DEPLOY_PACKAGE == 'true'
50-
run: npm set registry https://npm.pkg.github.com/ && npm publish
51-
env:
52-
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
43+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)