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
This commit is contained in:
Taly 2021-05-27 17:12:23 +03:00 committed by GitHub
parent 041470d171
commit ce1d394f44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 }}