feat(release): isolate v2 stable publishing (#48546)

This commit is contained in:
Dax
2026-09-11 15:50:35 -04:00
committed by GitHub
parent 68b862da49
commit 654f411a5b
47 changed files with 171 additions and 140 deletions
+1
View File
@@ -40,6 +40,7 @@ const VERSION = await (async () => {
return res.json()
})
.then((data: any) => data.version)
if (semver.lt(version, "2.0.0")) return "2.0.0"
const [major, minor, patch] = version.split(".").map((x: string) => Number(x) || 0)
const t = env.OPENCODE_BUMP?.toLowerCase()
if (t === "major") return `${major + 1}.0.0`