From 05bbe2084df2aa154dec8425f754710accc72719 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 10 Jul 2020 11:58:12 +0800 Subject: [PATCH] chore: fix publish --- .github/workflows/npm-publish.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index da082774d..556e4ae42 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -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 }}