diff options
| author | Brendan Allan <[email protected]> | 2025-12-20 02:22:17 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-19 13:22:17 -0500 |
| commit | 943fbf39a333ab4182e6f598c89f995d5063dbe1 (patch) | |
| tree | b6c3e28cf24f60128b8afc55c137bd622c1d8cc3 /script | |
| parent | d8a34c2fcc6e36a831d6d340aae63d12ec69b73f (diff) | |
| download | opencode-943fbf39a333ab4182e6f598c89f995d5063dbe1.tar.gz opencode-943fbf39a333ab4182e6f598c89f995d5063dbe1.zip | |
ci: separate standalone publishing from dependent publishing (#5634)
Co-authored-by: GitHub Action <[email protected]>
Diffstat (limited to 'script')
| -rw-r--r-- | script/publish-complete.ts | 14 | ||||
| -rwxr-xr-x | script/publish-start.ts (renamed from script/publish.ts) | 0 |
2 files changed, 14 insertions, 0 deletions
diff --git a/script/publish-complete.ts b/script/publish-complete.ts new file mode 100644 index 000000000..aae1a3524 --- /dev/null +++ b/script/publish-complete.ts @@ -0,0 +1,14 @@ +#!/usr/bin/env bun + +import { Script } from "@opencode-ai/script" +import { $ } from "bun" + +if (!Script.preview) { + await $`gh release edit ${process.env.OPENCODE_RELEASE_TAG} --draft=false` +} + +await $`bun install` + +await $`gh release download --pattern "opencode-linux-*64.tar.gz" --pattern "opencode-darwin-*64.zip" -D dist` + +await import(`../packages/opencode/script/publish-registries.ts`) diff --git a/script/publish.ts b/script/publish-start.ts index d11b435b4..d11b435b4 100755 --- a/script/publish.ts +++ b/script/publish-start.ts |
