We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6277023 commit 748a0e3Copy full SHA for 748a0e3
.github/workflows/node.js.yml
@@ -28,8 +28,16 @@ jobs:
28
- run: xvfb-run --auto-servernum npm run test:chrome
29
- run: xvfb-run --auto-servernum npm run test:firefox
30
31
+ - name: Publish to npm dry-run
32
+ if: github.ref == 'refs/heads/master' && github.event_name == 'pull_request'
33
+ env:
34
+ run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
35
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
36
+ run: npm publish:dry-run
37
+
38
- name: Publish to npm
39
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
40
env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
41
42
43
run: npm publish
0 commit comments