fix(release): keep correction tags at base version

This commit is contained in:
Vincent Koc
2026-07-10 17:27:45 -07:00
committed by Vincent Koc
parent d75f92e6a6
commit f02a4dfbf6
2 changed files with 25 additions and 1 deletions
+20
View File
@@ -144,6 +144,26 @@ describe("release version planning", () => {
});
});
it("keeps repository versions at the base version for correction tags", () => {
const root = writeFixture();
const plan = planReleaseVersion({
rootDir: root,
version: "2026.7.2-3",
});
applyReleaseVersionPlan(plan);
expect(plan.version).toBe("2026.7.2-3");
expect(readJson(path.join(root, "package.json"))).toMatchObject({
version: "2026.7.2",
});
expect(
fs.readFileSync(
path.join(root, "apps", "macos", "Sources", "OpenClaw", "Resources", "Info.plist"),
"utf8",
),
).toContain("<string>2026.7.2</string>");
});
it("keeps an existing Android build increment on the same release train", () => {
const root = writeFixture();
const plan = planReleaseVersion({