From ff4095036ef4638a43f78e4514ffc06a755a5fdc Mon Sep 17 00:00:00 2001 From: cannorin Date: Tue, 11 Jan 2022 21:06:36 +0900 Subject: [PATCH] Update publish.yml --- .github/workflows/publish.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8f2fac37..208d95db 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -62,9 +62,17 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} MESSAGE: "Build ({sha}) {msg}" - - name: NPM Publish - if: success() + - name: NPM Publish as "latest" + if: success() && !github.event.release.prerelease + uses: JS-DevTools/npm-publish@v1 + with: + token: ${{ secrets.NPM_TOKEN }} + check-version: true + + - name: NPM Publish as "beta" + if: success() && github.event.release.prerelease uses: JS-DevTools/npm-publish@v1 with: token: ${{ secrets.NPM_TOKEN }} check-version: true + tag: "beta"