Imported from different-ai/agent-bank (
.opencode/skill/publish-cli/SKILL.md). Install upstream withnpx skills add different-ai/agent-bank --skill publish-cli. Copyright stays with the author.
publish-cli
What I Do
Publish the 0 Finance CLI (agent-bank) to npm and keep the CLI version in sync.
Prerequisites
- npm account with publish rights for
agent-bank packages/clibuilds successfully
Workflow
- Bump
packages/cli/package.jsonversion. - Update
packages/cli/src/index.ts.version()to match. - Build:
pnpm --filter ./packages/cli build. - Publish from
packages/cli:npm publish --tag latest. - Verify:
npm view agent-bank version. - Sanity check install:
bun add -g agent-bank@latestthenfinance --version.
Optional Script
packages/cli/package.jsonincludespublish:clifor step 3–4.
Common Issues
- Version prints old number:
.version()not updated insrc/index.ts. - npm rejects publish: bump package.json version.
- bun shows older version: clear cache or reinstall globally.
Completion Criteria
npm view agent-bank versionshows the new version.finance --versionmatches the published version.