Skip to content

Commit

Permalink
fix ci again
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyie committed Jan 17, 2024
1 parent cf78772 commit d550fc0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ jobs:

# Publish to NPM
- name: Publish Latest Release
if: github.event.release.prerelease == false && env.NODE_AUTH_TOKEN != ''
if: github.event_name == 'release' && github.event.release.prerelease == false && env.NODE_AUTH_TOKEN != ''
run: npm run publish-ci

# Publish to NPM with prerelease dist-tag
- name: Publish Latest Prerelease
if: github.event.release.prerelease && env.NODE_AUTH_TOKEN != ''
run: npm run publish-ci -- --dist-tag prerelease
if: github.event_name == 'release' && github.event.release.prerelease && env.NODE_AUTH_TOKEN != ''
run: npm run publish-ci -- --tag prerelease

0 comments on commit d550fc0

Please sign in to comment.