chore: update publish action

This commit is contained in:
Nebel 2021-02-06 17:12:14 +09:00
parent e424cac266
commit a78917a3fb

View file

@ -19,9 +19,9 @@ jobs:
run: | run: |
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
- name: Publish. - name: Publish.
run: | run: |
npm version patch
git push --atomic --tags origin HEAD
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
npm publish npm publish
- run: git push origin --tags