diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ef5f710..0520044 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -199,8 +199,10 @@ jobs: run: | git config --global user.name 'github-actions[bot]' git config --global user.email 'github-actions[bot]@users.noreply.github.com' - npm publish --tag ${{ inputs.npm-tag }} --new-version $(echo $VERSION | sed 's/^v//') + npm version --no-git-tag-version $VERSION + npm publish --tag $TAG if: ${{ !env.ACT }} env: NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + TAG: ${{ inputs.npm-tag || 'latest' }} VERSION: ${{ inputs.new-version || github.ref_name }}