diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b470e47..b130639 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,9 +19,9 @@ jobs: run: | git config --global user.email bot@example git config --global user.name bot - - run: npm version patch - name: Publish. run: | + npm version patch + git push --atomic --tags origin HEAD echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc npm publish - - run: git push origin --tags