Release and Publish
This project publishes to npm using GitHub Actions when a semantic tag is pushed.
Requirements
- GitHub secret:
NPM_TOKEN - npm access token with publish permission over
velo-circuit - Node 22+ locally (Node 22/24 are validated in CI)
CI and Publish Flows
CIworkflow runs on pull requests and pushes tomainPublish to npmworkflow runs on tags matchingv*
Both workflows run:
pnpm install --frozen-lockfilepnpm typecheckpnpm testpnpm build
Automated Release Script
Use:
bash
pnpm release:prepare -- 0.2.0This command:
- validates typecheck/tests/build
- updates package version files
- creates commit
chore(release): v0.2.0 - creates tag
v0.2.0 - pushes branch and tag to GitHub
If you need to test the script without pushing:
bash
pnpm release:prepare -- 0.2.0 --no-push