fix(abacus-react): force npm to use GitHub Packages registry

- Set publishConfig registry to GitHub Packages in package.json
- Use --registry flag in npm publish command to override default
- This should fix npm trying to publish to registry.npmjs.org instead of GitHub Packages

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Thomas Hallock
2025-09-28 11:57:40 -05:00
parent 127cebab69
commit 5e6c901f73

View File

@@ -113,6 +113,12 @@ jobs:
if (pkg.peerDependencies) pkg.peerDependencies = cleanWorkspaceDeps(pkg.peerDependencies);
if (pkg.optionalDependencies) pkg.optionalDependencies = cleanWorkspaceDeps(pkg.optionalDependencies);
// Set publishConfig for GitHub Packages
pkg.publishConfig = {
access: 'public',
registry: 'https://npm.pkg.github.com'
};
// Write the clean package.json
fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2));
console.log('Created clean package.json for version:', pkg.version);
@@ -128,7 +134,8 @@ jobs:
exit 1
fi
npm publish
# Explicitly set registry for this publish command
npm publish --registry=https://npm.pkg.github.com
else
echo "No new abacus-react version tag found, skipping publish"
fi