Skip to content

Commit

Permalink
chore(ci): fix gen next patch release (#17281)
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc authored Jan 14, 2025
1 parent c8b8a28 commit d1a4975
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/scripts/bump_version.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ module.exports = async ({ github, context, core }) => {
const patch = stable[3];
return `v${major}.${minor}.${patch}-p1`;
}
const patch = RE_TAG_PATCH.exec(previous);
if (patch) {
const major = patch[1];
const minor = patch[2];
const patch = patch[3];
const pv = parseInt(patch[4]);
return `v${major}.${minor}.${patch}-p${pv + 1}`;
const version = RE_TAG_PATCH.exec(previous);
if (version) {
const major = version[1];
const minor = version[2];
const patch = version[3];
const pv = parseInt(version[4]) + 1;
return `v${major}.${minor}.${patch}-p${pv}`;
}
}

Expand Down

0 comments on commit d1a4975

Please sign in to comment.