diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5b7f6394..d4c05cc0 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -29,12 +29,12 @@ jobs: - run: pnpm run prepublish env: TAG_NAME: ${{ github.ref_name }} - - run: git tag -d ${{ github.ref_name }} # We need to delete the tag in order to overwrite it. - uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: Release Version - tagging_message: ${{ github.ref_name }} - push_options: '--force' + - run: git push origin :refs/tags/${{ github.ref_name }} + - run: git tag -fa ${{ github.ref_name }} + - run: git push origin --tags - run: pnpm -r publish --filter ./packages --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}