From d550fc0c5472741063ad00adedefd044cc9ce386 Mon Sep 17 00:00:00 2001 From: Zyie <24736175+Zyie@users.noreply.github.com> Date: Wed, 17 Jan 2024 16:11:07 +0000 Subject: [PATCH] fix ci again --- .github/workflows/nodejs.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index d25dce212..e07e5c5ea 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -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 \ No newline at end of file + if: github.event_name == 'release' && github.event.release.prerelease && env.NODE_AUTH_TOKEN != '' + run: npm run publish-ci -- --tag prerelease \ No newline at end of file