From d83ecc4585b15c09ca284325caf762dcaef08ad1 Mon Sep 17 00:00:00 2001 From: mkorwel Date: Wed, 22 Oct 2025 14:20:36 -0700 Subject: [PATCH] fix(ci): correct npm publish authentication in build-and-publish workflow --- .github/workflows/build-and-publish.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index ab8fb92d4e..07968cf773 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -44,14 +44,6 @@ jobs: - name: 'Prepare for GitHub release' run: 'node scripts/prepare-github-release.js' - - name: 'Debug .npmrc after prepare-github-release' - run: | - echo "--- Listing files in current directory after prepare-github-release ---" - ls -la - echo "--- Contents of .npmrc after prepare-github-release ---" - cat .npmrc - echo "---------------------------------------------------------" - - name: 'Set CI Version' id: 'version' run: | @@ -69,6 +61,8 @@ jobs: echo "---------------------------" - name: 'Publish to GitHub Packages' + env: + NODE_AUTH_TOKEN: '${{ secrets.GITHUB_TOKEN }}' run: | if [[ "${{ github.event_name }}" == "pull_request" ]]; then npm publish --tag="pr-${{ github.event.pull_request.number }}"