From 852fe7b527e331f18c1a5bf6739026dc3f8d73ab Mon Sep 17 00:00:00 2001 From: Chad Engler Date: Fri, 29 May 2020 13:10:54 -0700 Subject: [PATCH] Try to set registry url before publishing --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ab3a8fb..9780478 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,6 +28,6 @@ jobs: CI: true - name: Publish Version if: success() && github.event_name == 'release' - run: npm publish --access public + run: npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN && npm publish --access public env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }}