streamline release (#1095)

* update release

* more docs

* dates
This commit is contained in:
Chris Tate
2026-03-30 19:53:53 -05:00
committed by GitHub
parent cc9da7aff7
commit 6c93480d0d
15 changed files with 372 additions and 634 deletions
+14 -2
View File
@@ -27,10 +27,22 @@ if (!cargoVersionMatch) {
const cargoVersion = cargoVersionMatch[1];
// Read dashboard package.json version
const dashboardPkg = JSON.parse(readFileSync(join(rootDir, 'packages/dashboard/package.json'), 'utf-8'));
const dashboardVersion = dashboardPkg.version;
const mismatches = [];
if (packageVersion !== cargoVersion) {
mismatches.push(` cli/Cargo.toml: ${cargoVersion}`);
}
if (packageVersion !== dashboardVersion) {
mismatches.push(` packages/dashboard: ${dashboardVersion}`);
}
if (mismatches.length > 0) {
console.error('Version mismatch detected!');
console.error(` package.json: ${packageVersion}`);
console.error(` cli/Cargo.toml: ${cargoVersion}`);
console.error(` package.json: ${packageVersion}`);
for (const m of mismatches) console.error(m);
console.error('');
console.error("Run 'pnpm run version:sync' to fix this.");
process.exit(1);
+12
View File
@@ -44,6 +44,18 @@ if (cargoVersionRegex.test(cargoToml)) {
process.exit(1);
}
// Update packages/dashboard/package.json
const dashboardPkgPath = join(rootDir, "packages", "dashboard", "package.json");
const dashboardPkg = JSON.parse(readFileSync(dashboardPkgPath, "utf-8"));
if (dashboardPkg.version !== version) {
const oldVersion = dashboardPkg.version;
dashboardPkg.version = version;
writeFileSync(dashboardPkgPath, JSON.stringify(dashboardPkg, null, 2) + "\n");
console.log(` Updated packages/dashboard/package.json: ${oldVersion} -> ${version}`);
} else {
console.log(` packages/dashboard/package.json already up to date`);
}
// Update Cargo.lock to match Cargo.toml
if (cargoTomlUpdated) {
try {