diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 074fc1c..d918dd8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,11 +15,16 @@ jobs: - name: Setup .npmrc with authentication run: | - cat << EOF > ~/.npmrc - //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} - registry=https://registry.npmjs.org/ - always-auth=true - EOF + echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc + echo "registry=https://registry.npmjs.org/" >> ~/.npmrc + echo "always-auth=true" >> ~/.npmrc + + - name: Debug - Check .npmrc content + run: | + echo "Contents of .npmrc:" + cat ~/.npmrc | sed 's/_authToken=.*/_authToken=***HIDDEN***/' + echo "NPM config:" + npm config list - name: Debug - Verify authentication run: |