From ce1d394f446c14ce42144e41168ac7da48e1ad17 Mon Sep 17 00:00:00 2001 From: Taly Date: Thu, 27 May 2021 17:12:23 +0300 Subject: [PATCH] Use "npm dist-tag add" instead of "yarn tag add" (#1693) * Use "npm dist-tag add" instead of "yarn tag add" `yarn tag add` somehow throws an error for existing versions, but `npm dist-tag add` works correctly. resolve #1692 * Remove space --- .github/workflows/publish-package-to-npm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-package-to-npm.yml b/.github/workflows/publish-package-to-npm.yml index 39f85fc9..69364cdf 100644 --- a/.github/workflows/publish-package-to-npm.yml +++ b/.github/workflows/publish-package-to-npm.yml @@ -39,7 +39,7 @@ jobs: - name: Add LATEST tag for the published package if this is not a prerelease version if: github.event.release.prerelease != true - run: yarn tag add ${{ steps.package.outputs.name }}@${{ steps.package.outputs.version }} latest + run: npm dist-tag add ${{ steps.package.outputs.name }}@${{ steps.package.outputs.version }} latest env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}