mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 10:16:44 +00:00
fix(release): keep correction tags at base version
This commit is contained in:
@@ -104,8 +104,12 @@ export function planReleaseVersion(params: {
|
||||
);
|
||||
}
|
||||
|
||||
const packageVersion =
|
||||
parsedVersion.correctionNumber === undefined
|
||||
? parsedVersion.version
|
||||
: parsedVersion.baseVersion;
|
||||
const changes = [
|
||||
planPackageJson(rootDir, parsedVersion.version),
|
||||
planPackageJson(rootDir, packageVersion),
|
||||
planMacosInfoPlist(rootDir, parsedVersion),
|
||||
];
|
||||
if (params.android) {
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user