From 972276aaf47d9dd25d625dee613570b0df6a713d Mon Sep 17 00:00:00 2001 From: junjie-w Date: Sat, 16 Nov 2024 18:36:30 +0100 Subject: [PATCH] fix: debug npm auth --- .github/workflows/release-publish.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index 0e7b3e5..8251934 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -32,9 +32,15 @@ jobs: node-version: 20 cache: npm registry-url: 'https://registry.npmjs.org' + always-auth: true + token: ${{ secrets.NPM_TOKEN }} - - name: Debug .npmrc - run: cat ~/.npmrc + - name: Debug NPM Config + run: | + echo "NPM Config:" + npm config list + echo "\nNPM Registry:" + npm config get registry - name: Install dependencies run: npm ci @@ -42,7 +48,7 @@ jobs: - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: npx semantic-release - name: Build Package