fix(abacus-react): add debugging and explicit authentication for npm publish
- Add debugging output to see .npmrc contents and environment - Set NODE_AUTH_TOKEN explicitly for npm publish command - Override NPM_CONFIG_USERCONFIG to use local .npmrc file 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
12
.github/workflows/publish-abacus-react.yml
vendored
12
.github/workflows/publish-abacus-react.yml
vendored
@@ -134,8 +134,16 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Explicitly set registry for this publish command
|
||||
npm publish --registry=https://npm.pkg.github.com
|
||||
# Debug and publish to GitHub Packages
|
||||
echo "Contents of .npmrc file:"
|
||||
cat .npmrc
|
||||
echo "Environment variables for npm:"
|
||||
echo "NPM_CONFIG_USERCONFIG: $NPM_CONFIG_USERCONFIG"
|
||||
echo "NODE_AUTH_TOKEN is set: $([ -n "$NODE_AUTH_TOKEN" ] && echo "yes" || echo "no")"
|
||||
|
||||
# Set authentication and registry for GitHub Packages
|
||||
echo "Publishing with explicit authentication..."
|
||||
NPM_CONFIG_USERCONFIG=.npmrc NODE_AUTH_TOKEN="${{ secrets.GITHUB_TOKEN }}" npm publish --registry=https://npm.pkg.github.com
|
||||
else
|
||||
echo "No new abacus-react version tag found, skipping publish"
|
||||
fi
|
||||
Reference in New Issue
Block a user