From 4142b3fbaf1d9ba8934a149277ce69978db52413 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Tue, 7 Sep 2021 15:58:32 +0200 Subject: [PATCH] setup npm registry url The `NPM_TOKEN` name was also incorrect (surprise?). Found another resource here that mentions the `registry-url` option and `NODE_AUTH_TOKEN`. Let's see if that works... https://docs.github.com/en/actions/guides/publishing-nodejs-packages --- .github/workflows/release-insiders.yml | 3 ++- .github/workflows/release.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-insiders.yml b/.github/workflows/release-insiders.yml index e10801a64..1b169de6d 100644 --- a/.github/workflows/release-insiders.yml +++ b/.github/workflows/release-insiders.yml @@ -19,6 +19,7 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} + registry-url: 'https://registry.npmjs.org' - name: Use cached node_modules id: cache @@ -54,4 +55,4 @@ jobs: run: npm publish --tag insiders env: CI: true - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e709eb19b..9264558c2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,6 +19,7 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} + registry-url: 'https://registry.npmjs.org' - name: Use cached node_modules id: cache @@ -47,4 +48,4 @@ jobs: run: npm publish env: CI: true - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}