opencode/script/version.ts
opencode-agent[bot] ed772f5009
chore(release): drop the separate opencode-beta release repo (#56083)
Co-authored-by: thdxr <826656+thdxr@users.noreply.github.com>
2026-10-16 13:54:42 +00:00

16 lines
350 B
TypeScript
Executable file

#!/usr/bin/env bun
import { Script } from "@opencode/script"
const output = [`version=${Script.version}`]
if (!Script.preview || Script.channel === "beta") {
output.push("release=true")
output.push(`tag=v${Script.version}`)
}
if (process.env.GITHUB_OUTPUT) {
await Bun.write(process.env.GITHUB_OUTPUT, output.join("\n"))
}
process.exit(0)