File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -45,17 +45,15 @@ jobs:
45
45
- run : npm install
46
46
- run : npm run build
47
47
48
- - name : Publish to npm dry-run
48
+ - name : Authenticate with npm
49
49
env :
50
- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
51
- run : |
52
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
53
- npm publish --dry-run
50
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
51
+ run : echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc
52
+
53
+ - name : Run npm publish dry run
54
+ run : npm run npm:publish:dry-run
54
55
55
56
- name : Publish to npm
56
- if : github.ref == 'refs/heads/master' && github.event_name == 'push'
57
57
env :
58
58
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
59
- run : |
60
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
61
- npm publish
59
+ run : npm run npm:publish
You can’t perform that action at this time.
0 commit comments