Skip to content

Commit

Permalink
Partially fix release workflow (#1337)
Browse files Browse the repository at this point in the history
  • Loading branch information
dacbd authored Feb 2, 2023
1 parent 0a1239e commit 69840e3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,12 @@ jobs:
with:
registry-url: https://registry.npmjs.org
- run: npm install
- run: npm ${{ inputs.release && 'publish' || 'publish --dry-run' }}
- run: |
if [$GITHUB_RUN_ATTEMPT == 1 ]; then
npm ${{ inputs.release && 'publish' || 'publish --dry-run' }}
else
echo "Job being re-run, skipping"
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# Step required "thanks" to https://github.com/actions/runner-images/issues/6283
Expand Down

0 comments on commit 69840e3

Please sign in to comment.