1
0
mirror of synced 2024-11-24 22:06:07 +03:00

Enable dry runs for publishing

This commit is contained in:
Kevin Brown 2019-09-10 20:56:45 -04:00
parent 91838fe0a6
commit 8b9a99d286

View File

@ -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}}