ci(version): add version sync check between package.json and Cargo.toml (#277)

Add automated verification that package.json and cli/Cargo.toml versions
stay in sync. This prevents version drift between the npm package and
Rust CLI binary.

- Add CI job to check version sync on push/PR
- Update pre-commit hook to sync versions automatically
- Update ci:version script to include version sync step
- Add check-version-sync.js script for CI validation
This commit is contained in:
n33pm
2026-01-27 09:09:04 -06:00
committed by GitHub
parent 3ce441bc4e
commit 3f74bd2171
4 changed files with 52 additions and 1 deletions
+1 -1
View File
@@ -34,7 +34,7 @@
"test:watch": "vitest",
"postinstall": "node scripts/postinstall.js",
"changeset": "changeset",
"ci:version": "changeset version && pnpm install --no-frozen-lockfile",
"ci:version": "changeset version && pnpm run version:sync && pnpm install --no-frozen-lockfile",
"ci:publish": "pnpm run version:sync && pnpm run build && changeset publish"
},
"keywords": [