From 4729ba71da490626caf22dea4be881dc64deb14b Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Thu, 3 Sep 2020 19:32:36 +0900 Subject: [PATCH] fix npm publish --- .github/workflows/publish.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2ebad58..1189efa 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,7 +20,8 @@ jobs: git config --global user.email bot@example git config --global user.name bot - run: npm version patch - - run: npm publish - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Publish. + run: | + echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc + npm publish - run: git push origin --tags