mirror of
https://github.com/anomalyco/opencode.git
synced 2026-09-28 21:45:51 +08:00
19 lines
394 B
TypeScript
Executable File
19 lines
394 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}`)
|
|
}
|
|
|
|
output.push(`repo=${process.env.GH_REPO}`)
|
|
|
|
if (process.env.GITHUB_OUTPUT) {
|
|
await Bun.write(process.env.GITHUB_OUTPUT, output.join("\n"))
|
|
}
|
|
|
|
process.exit(0)
|