diff --git a/packages/dev/scripts/zcloak-ci-ghact-build.mjs b/packages/dev/scripts/zcloak-ci-ghact-build.mjs index d6b892f..13506c2 100755 --- a/packages/dev/scripts/zcloak-ci-ghact-build.mjs +++ b/packages/dev/scripts/zcloak-ci-ghact-build.mjs @@ -136,14 +136,16 @@ async function verBump() { } } - if (level === 3) { - releaseType = 'major'; - } else if (level === 4) { - releaseType = 'minor'; - } else if (level === 5) { - releaseType = 'patch'; - } else { - throw new Error(`error level: ${level}`); + if (level >= 3) { + if (level === 3) { + releaseType = 'major'; + } else if (level === 4) { + releaseType = 'minor'; + } else if (level === 5) { + releaseType = 'patch'; + } else { + throw new Error(`error level: ${level}`); + } } execSync(`yarn zcloak-dev-version ${releaseType}`);