File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 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
-
4
1
name : Node.js CI
5
2
6
3
on :
41
38
42
39
- name : Publish to npm
43
40
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
45
42
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}}
You can’t perform that action at this time.
0 commit comments