From 002ec474dd540ea18df796d12e88a5a3840ea175 Mon Sep 17 00:00:00 2001 From: Artyom Savchenko Date: Fri, 3 Jul 2026 18:42:56 +0700 Subject: [PATCH] Fix npm publish Signed-off-by: Artyom Savchenko --- .github/workflows/main.yml | 2 +- .github/workflows/publish-npm.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 753708009e..66cd74f9d0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -973,12 +973,12 @@ jobs: - name: Publish to npm env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - NPM_CONFIG_USERCONFIG: ${{ github.workspace }}/common/config/rush/.npmrc-publish run: | if [ -z "$NPM_TOKEN" ]; then echo "::error::NPM_TOKEN secret is not set. Add it in repository Settings > Secrets and variables > Actions." exit 1 fi + echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> "$HOME/.npmrc" REF="${{ github.event.inputs.ref || github.ref }}" VERSION="${REF#refs/tags/v}" VERSION="${VERSION#v}" diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 617a7671c2..4cc0b7267a 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -44,7 +44,7 @@ jobs: echo "::error::NPM_TOKEN secret is not set. Add it in repository Settings > Secrets and variables > Actions." exit 1 fi - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc + echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> "$HOME/.npmrc" REF="${{ github.event.inputs.ref }}" VERSION="${REF#refs/tags/v}" VERSION="${VERSION#v}"