ci: handle the tag overwriting separately

This commit is contained in:
Sam Marks 2022-03-10 15:34:41 -05:00
parent 114661d433
commit 45d49e9ce4

View file

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