From ef0c7d76a7eff1a3dfe82f16b87f1dbe35274595 Mon Sep 17 00:00:00 2001 From: Taly Date: Wed, 21 Apr 2021 19:21:26 +0300 Subject: [PATCH] Publish the latest version with a next tag too (#1668) resolves #1659 --- .github/workflows/publish-package-to-npm.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-package-to-npm.yml b/.github/workflows/publish-package-to-npm.yml index 008c90f7..61195862 100644 --- a/.github/workflows/publish-package-to-npm.yml +++ b/.github/workflows/publish-package-to-npm.yml @@ -28,8 +28,14 @@ jobs: - name: Build output files run: yarn build - - name: Publish the package - run: yarn publish --access=public ${{ github.event.release.prerelease && '--tag=next' || '--tag=latest' }} + - name: Publish the package with a NEXT tag + run: yarn publish --access=public --tag=next + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: Publish the package with a LATEST tag if this is not a prerelease version + if: !github.event.release.prerelease + run: yarn publish --access=public --tag=latest env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}