Skip to content

Commit 2232493

Browse files
fix(release): append -oc suffix to bumped file versions
1 parent de676d9 commit 2232493

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

scripts/bump-versions.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ import { readFileSync, writeFileSync } from "node:fs";
33
import { join, dirname } from "node:path";
44
import { fileURLToPath } from "node:url";
55

6-
const version = process.argv[2];
7-
if (!version) {
6+
const baseVersion = process.argv[2];
7+
if (!baseVersion) {
88
console.error("Usage: bump-versions.mjs <version>");
99
process.exit(1);
1010
}
11+
// Fork suffix — keeps file versions aligned with the v${version}-oc tag format
12+
const version = baseVersion.includes("-") ? baseVersion : `${baseVersion}-oc`;
1113

1214
const root = join(dirname(fileURLToPath(import.meta.url)), "..");
1315

0 commit comments

Comments
 (0)