From e1f51948252fbf3d05f1d3d815d3caa838edd2b7 Mon Sep 17 00:00:00 2001 From: Claas Augner Date: Thu, 11 May 2023 19:18:02 +0200 Subject: [PATCH 1/3] fix(npm-publish): setup node with registry-url This creates an `.npmrc` file that references the token from the `NODE_AUTH_TOKEN` environment variable. --- .github/workflows/npm-publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index d160c65284f3..64189274d2c0 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -32,6 +32,7 @@ jobs: with: node-version: 18 cache: yarn + registry-url: "https://registry.npmjs.org" - name: Install if: steps.release.outputs.release_created From 17cdfa265167edb50f9307516a1f21556a698e3d Mon Sep 17 00:00:00 2001 From: Claas Augner Date: Thu, 11 May 2023 19:18:12 +0200 Subject: [PATCH 2/3] Revert "fix(npm-publish): revert renaming of NPM_AUTH_TOKEN (#8831)" This reverts commit 3ccc923e6690fa81b08435cf6e4ca44812fd06a4. --- .github/workflows/npm-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 64189274d2c0..06df3be76ec0 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -63,4 +63,4 @@ jobs: if: steps.release.outputs.release_created run: npm publish --access public env: - NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} From f02bfdcb981bd4f8f723e15938e0eda08367c18d Mon Sep 17 00:00:00 2001 From: Claas Augner Date: Thu, 11 May 2023 19:18:18 +0200 Subject: [PATCH 3/3] Revert "fix(npm-publish): restore --access public option (#8839)" This reverts commit c5f8c48ada5b17ef672810e09ca399ea518a46fa. --- .github/workflows/npm-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 06df3be76ec0..9215c799c691 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -61,6 +61,6 @@ jobs: - name: Publish if: steps.release.outputs.release_created - run: npm publish --access public + run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}