Skip to content

Commit f2def9a

Browse files
authored
Merge pull request #10 from PureMVC/develop
Develop
2 parents a1143a2 + f5e98b2 commit f2def9a

File tree

3 files changed

+447
-1379
lines changed

3 files changed

+447
-1379
lines changed

.github/workflows/node.js.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,18 @@ jobs:
2828
- run: xvfb-run --auto-servernum npm run test:chrome
2929
- run: xvfb-run --auto-servernum npm run test:firefox
3030

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+
3139
- name: Publish to npm
3240
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
3341
env:
34-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
35-
run: npm publish
42+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
43+
run: |
44+
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
45+
npm publish

0 commit comments

Comments
 (0)