Skip to content

Commit 45ab776

Browse files
committed
(fix) (openai/gpt-5.5, reviewed T, tested T) bump patch version in release script
1 parent fce0d13 commit 45ab776

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

cli/scripts/bump-minor.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ const match = /^v?(\d+)\.(\d+)\.(\d+)(-.+)?$/.exec(packageJson.version);
66
if (!match) throw Error(`invalid package version: ${packageJson.version}`);
77

88
const major = Number(match[1]);
9-
const minor = Number(match[2]) + 1;
9+
const minor = Number(match[2]);
10+
const patch = Number(match[3]) + 1;
1011
const suffix = match[4] ?? "";
1112

12-
packageJson.version = `${major}.${minor}.0${suffix}`;
13+
packageJson.version = `${major}.${minor}.${patch}${suffix}`;
1314
writeFileSync(packageUrl, `${JSON.stringify(packageJson, null, 2)}\n`);

0 commit comments

Comments
 (0)