Pre-release verification checklist for TokenDanceCode Rust binary and npm wrapper.
-
cargo fmt --all -- --check— formatting clean -
cargo test --workspace— all 204 tests pass (CLI: 12, Core: 185, SDK: 7) -
cargo clippy --workspace -- -D warnings— no clippy warnings -
node scripts/check-rust-release-plan.mjs— release plan assertions pass -
node scripts/smoke-rust-wrapper-tarball.mjs— npm wrapper tarball smoke passes -
node scripts/smoke-rust-release.mjs— comprehensive release readiness check passes -
node scripts/smoke-providers.mjs— provider smoke passes (if API keys available) - Privacy scan clean — no secrets, local paths, or tokens in public files
- Review tarball contents:
npm pack ./packages/cli --dry-run - No secrets in package (no
sk-,tk-,Bearer, private keys) - No local paths in package (no
C:\Users,/home/, internal hostnames) - Version bumped in
crates/tokendance-cli/Cargo.toml - Version bumped in
packages/cli/package.json - Version bumped in root
package.json - All three versions match
- Changelog updated with version, date, and changes
-
cargo build -p tokendance-cli --release— release build succeeds - Binary size is reasonable (check against last release)
- Binary runs on clean machine without Rust toolchain
- Windows x64 MSVC build
- macOS ARM64 build
- macOS x64 build
- Linux x64 GNU build
- Linux ARM64 GNU build
- Create native packages for each platform
- Test install on each target platform
-
npm publish --tag nextfor@tokendance/code-cli - Verify on registry:
npm view @tokendance/code-cli - Test install from registry:
npm install -g @tokendance/code-cli@next - Run
tokendance --versionfrom registry install - Run
tokendance doctor --jsonfrom registry install
- Create Git tag:
v{version} - Create GitHub Release with changelog
- Update
docs/rust-rewrite-status.mdwith release version - Update
docs/rust-rewrite-handoff.mdwith release commit - Notify team of new release
If a published package has issues:
npm deprecate @tokendance/code-cli@{version} "reason"- Do not unpublish unless the package is less than 24 hours old and has zero downloads
- Fix the issue in a new commit and publish a patch version
- Update the release notes