Publishing Guide
NPM Registry
To publish the OpenCodeHub CLI to the official npm registry:
Login to npm:
npm loginRun the publish script:
./scripts/publish-cli.sh
GitHub Packages (Other Registry)
To publish to GitHub Packages:
Configure
.npmrc:
Create a.npmrcfile incli/with:@swadhinbiswas:registry=https://npm.pkg.github.comUpdate Package Name:
Incli/package.json, change the name to allow scoped publishing:"name": "@swadhinbiswas/opencodehub-cli"Authenticate:
Generate a Value Access Token (PAT) withwrite:packagesscope on GitHub.npm login --scope=@swadhinbiswas --registry=https://npm.pkg.github.comPublish:
cd cli npm publish