From 1f22b1c9db7c5a6c63975ab9165a6b1707e7cf4a Mon Sep 17 00:00:00 2001 From: Cause Chung Date: Sun, 24 May 2026 09:57:42 -0400 Subject: [PATCH] fix(ISSUE-16): unset NODE_AUTH_TOKEN before OIDC provenance publish --- .github/workflows/publish.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 384fb04..d684acd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -25,11 +25,7 @@ jobs: - run: npm test - - name: Clear .npmrc auth token for OIDC flow + - name: Publish with OIDC auth run: | - if [ -f "$NPM_CONFIG_USERCONFIG" ]; then - grep -v 'authToken' "$NPM_CONFIG_USERCONFIG" > /tmp/.npmrc.clean - mv /tmp/.npmrc.clean "$NPM_CONFIG_USERCONFIG" - fi - - - run: npm publish --provenance --access public + unset NODE_AUTH_TOKEN + npm publish --provenance --access public