Publishing
PayAI packages are published under the @payai-sh npm scope:
@payai-sh/core@payai-sh/x402
Current Public Release
@payai-sh/corev0.0.3@payai-sh/x402v0.0.3
Prerequisite
The npm account used for publishing must own or belong to the payai-sh npm organization/scope.
If publishing returns:
404 Not Found - PUT https://registry.npmjs.org/@payai-sh%2fcore
then npm does not recognize the token as having publish access for @payai-sh.
If publishing returns:
404 Not Found - PUT https://registry.npmjs.org/@payai-sh%2fcore - Scope not found
then the payai-sh npm organization/scope does not exist yet.
Verify
npm run check
npm run publish:dry-run
Publish
Publish core first:
cd packages/core
npm publish --access public
Then publish the x402 adapter:
cd ../x402
npm publish --access public
Token
Use an npm automation token with publish rights for the @payai-sh scope.