chore: fix publish

This commit is contained in:
DIYgod 2020-07-10 11:58:12 +08:00
parent b389ff06fb
commit 05bbe2084d
No known key found for this signature in database
GPG Key ID: D159328F47A80DCA
1 changed files with 4 additions and 6 deletions

View File

@ -14,17 +14,15 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: '12'
registry-url: 'https://registry.npmjs.org'
- name: Release
run: npx version-from-git --allow-same-version
run: npx version-from-git --allow-same-version --template 'master.short'
- name: Publish to npmjs
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: actions/setup-node@v1
with:
registry-url: 'https://npm.pkg.github.com'
- name: Publish to GPR
run: npm publish
run: |
npm config set registry https://npm.pkg.github.com
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}