Enable dry runs for publishing
This commit is contained in:
parent
91838fe0a6
commit
8b9a99d286
15
.github/workflows/main.yml
vendored
15
.github/workflows/main.yml
vendored
@ -58,9 +58,16 @@ jobs:
|
|||||||
run: npm install
|
run: npm install
|
||||||
- name: Run linting, tests, minify
|
- name: Run linting, tests, minify
|
||||||
run: grunt
|
run: grunt
|
||||||
- name: Deploy
|
- name: Deploy (release)
|
||||||
|
if: github.event_name == 'release'
|
||||||
|
run: npm publish --dry-run
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
- name: Deploy (release candidate)
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
run: npm publish
|
run: |
|
||||||
|
npm --no-git-tag-version version prerelease
|
||||||
|
npm publish --tag next --dry-run
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
deploy_npm:
|
deploy_npm:
|
||||||
@ -80,7 +87,7 @@ jobs:
|
|||||||
- name: Run linting, tests, minify
|
- name: Run linting, tests, minify
|
||||||
run: grunt
|
run: grunt
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
if: github.event_name == 'release'
|
if: github.event_name == 'push'
|
||||||
run: npm publish
|
run: npm publish --dry-run
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||||
|
Loading…
Reference in New Issue
Block a user