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.
2 parents a1143a2 + f5e98b2 commit f2def9aCopy full SHA for f2def9a
.github/workflows/node.js.yml
@@ -28,8 +28,18 @@ 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
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
35
+ run: |
36
+ echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
37
+ npm publish --dry-run
38
+
39
- name: Publish to npm
40
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
41
env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish
42
43
44
45
+ npm publish
0 commit comments