diff options
| author | Dax Raad <[email protected]> | 2025-10-14 14:51:35 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-10-14 14:52:05 -0400 |
| commit | 289783f627c30074341938d8422cd9c9ef91bca8 (patch) | |
| tree | c364bba9b2721dfab42806f060eedf75a21f1b73 /packages/script/src | |
| parent | 4c464cf4c01ed6120b16e201cf232255a10d3c8c (diff) | |
| download | opencode-289783f627c30074341938d8422cd9c9ef91bca8.tar.gz opencode-289783f627c30074341938d8422cd9c9ef91bca8.zip | |
ci: version stuff
Diffstat (limited to 'packages/script/src')
| -rw-r--r-- | packages/script/src/index.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/script/src/index.ts b/packages/script/src/index.ts index 4237a76a2..70232d3ab 100644 --- a/packages/script/src/index.ts +++ b/packages/script/src/index.ts @@ -4,8 +4,8 @@ if (process.versions.bun !== "1.3.0") { throw new Error("This script requires [email protected]") } -const TAG = process.env["OPENCODE_TAG"] ?? (await $`git branch --show-current`.text().then((x) => x.trim())) -const IS_PREVIEW = TAG !== "latest" +const CHANNEL = process.env["OPENCODE_CHANNEL"] ?? (await $`git branch --show-current`.text().then((x) => x.trim())) +const IS_PREVIEW = CHANNEL !== "latest" const VERSION = await (async () => { if (IS_PREVIEW) return `0.0.0-${new Date().toISOString().slice(0, 16).replace(/[-:T]/g, "")}` const version = await fetch("https://registry.npmjs.org/opencode-ai/latest") @@ -22,8 +22,8 @@ const VERSION = await (async () => { })() export const Script = { - get tag() { - return TAG + get channel() { + return CHANNEL }, get version() { return VERSION |
