Skip to content

Commit

Permalink
chore: reordered if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
lquixada committed Jul 1, 2023
1 parent 81049e1 commit e298dbb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ jobs:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
- run: npm install --prefer-offline
- run: npm publish --tag latest-v3.x
if: ${{ !contains(github.ref_name, '-test.') }}
- if: ${{ !contains(github.ref_name, '-test.') }}
run: npm publish --tag latest-v3.x
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# If "test" prerelease is present, pretend to publish package.
- run: npm publish --tag latest-v3.x --dry-run
if: ${{ contains(github.ref_name, '-test.') }}
- if: ${{ contains(github.ref_name, '-test.') }}
run: npm publish --tag latest-v3.x --dry-run
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit e298dbb

Please sign in to comment.