We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6fba03 commit acd33c2Copy full SHA for acd33c2
1 file changed
script/publish.ts
@@ -11,6 +11,7 @@ console.log("=== publishing ===\n")
11
const snapshot = process.env["OPENCODE_SNAPSHOT"] === "true"
12
const version = await (async () => {
13
if (snapshot) return `0.0.0-${new Date().toISOString().slice(0, 16).replace(/[-:T]/g, "")}`
14
+ if (process.env["OPENCODE_VERSION"]) return process.env["OPENCODE_VERSION"]
15
const [major, minor, patch] = (await $`gh release list --limit 1 --json tagName --jq '.[0].tagName'`.text())
16
.trim()
17
.replace(/^v/, "")
0 commit comments