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