From 59ce57e56aa09f37c00a912ce8dd5a27f4d2c1e2 Mon Sep 17 00:00:00 2001 From: sotojn Date: Thu, 9 Jan 2025 17:16:36 -0700 Subject: [PATCH] fix npm auth token for yarn 4 --- .github/workflows/publish-tag.yml | 2 +- .yarnrc.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-tag.yml b/.github/workflows/publish-tag.yml index 289bc36c608..8093fbd25f9 100644 --- a/.github/workflows/publish-tag.yml +++ b/.github/workflows/publish-tag.yml @@ -30,7 +30,7 @@ jobs: run: yarn && yarn setup - name: Publish to npm - run: yarn ts-scripts publish -t tag npm + run: CI_NPM_AUTH_TOKEN=${{ secrets.NPM_TOKEN }} yarn ts-scripts publish -t tag npm docker-build-publish: runs-on: ubuntu-latest diff --git a/.yarnrc.yml b/.yarnrc.yml index 035b76fc3b5..859406c1a34 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -7,3 +7,7 @@ nodeLinker: node-modules yarnPath: .yarn/releases/yarn-4.6.0.cjs enableHardenedMode: false + +npmScopes: + _default: + npmAuthToken: "${CI_NPM_AUTH_TOKEN:-placeHolderToken}"