Skip to content

Commit 8b9a99d

Browse files
committed
Enable dry runs for publishing
1 parent 91838fe commit 8b9a99d

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,16 @@ jobs:
5858
run: npm install
5959
- name: Run linting, tests, minify
6060
run: grunt
61-
- name: Deploy
61+
- name: Deploy (release)
62+
if: github.event_name == 'release'
63+
run: npm publish --dry-run
64+
env:
65+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
66+
- name: Deploy (release candidate)
6267
if: github.event_name == 'push'
63-
run: npm publish
68+
run: |
69+
npm --no-git-tag-version version prerelease
70+
npm publish --tag next --dry-run
6471
env:
6572
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
6673
deploy_npm:
@@ -80,7 +87,7 @@ jobs:
8087
- name: Run linting, tests, minify
8188
run: grunt
8289
- name: Deploy
83-
if: github.event_name == 'release'
84-
run: npm publish
90+
if: github.event_name == 'push'
91+
run: npm publish --dry-run
8592
env:
8693
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)