fix npm publish

This commit is contained in:
Nebel 2020-09-03 19:32:36 +09:00 committed by GitHub
parent 567a9d9069
commit 4729ba71da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,8 @@ jobs:
git config --global user.email bot@example git config --global user.email bot@example
git config --global user.name bot git config --global user.name bot
- run: npm version patch - run: npm version patch
- run: npm publish - name: Publish.
env: run: |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
npm publish
- run: git push origin --tags - run: git push origin --tags