diff options
| author | Dax Raad <[email protected]> | 2025-09-29 01:24:35 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-09-29 01:24:35 -0400 |
| commit | acd33c2fc53f911381511de56b97bacea794671b (patch) | |
| tree | 7ad66b18caeee7fb1900772bee4e22ce52dc178d /script | |
| parent | b6fba03a7d5352c41b3d65a6053211634bc9c939 (diff) | |
| download | opencode-acd33c2fc53f911381511de56b97bacea794671b.tar.gz opencode-acd33c2fc53f911381511de56b97bacea794671b.zip | |
ci: publish
Diffstat (limited to 'script')
| -rwxr-xr-x | script/publish.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/script/publish.ts b/script/publish.ts index 4aedc9dc5..359fa72a4 100755 --- a/script/publish.ts +++ b/script/publish.ts @@ -11,6 +11,7 @@ console.log("=== publishing ===\n") const snapshot = process.env["OPENCODE_SNAPSHOT"] === "true" const version = await (async () => { if (snapshot) return `0.0.0-${new Date().toISOString().slice(0, 16).replace(/[-:T]/g, "")}` + if (process.env["OPENCODE_VERSION"]) return process.env["OPENCODE_VERSION"] const [major, minor, patch] = (await $`gh release list --limit 1 --json tagName --jq '.[0].tagName'`.text()) .trim() .replace(/^v/, "") |
