From a78917a3fb03740807c8f2f18683329a26ab9a51 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Sat, 6 Feb 2021 17:12:14 +0900 Subject: [PATCH] chore: update publish action --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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