Skip to content

Commit acd33c2

Browse files
committed
ci: publish
1 parent b6fba03 commit acd33c2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

script/publish.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ console.log("=== publishing ===\n")
1111
const snapshot = process.env["OPENCODE_SNAPSHOT"] === "true"
1212
const version = await (async () => {
1313
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"]
1415
const [major, minor, patch] = (await $`gh release list --limit 1 --json tagName --jq '.[0].tagName'`.text())
1516
.trim()
1617
.replace(/^v/, "")

0 commit comments

Comments
 (0)