ci: separate standalone publishing from dependent publishing (#5634)

Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
Brendan Allan 2025-12-20 02:22:17 +08:00 committed by GitHub
parent d8a34c2fcc
commit 943fbf39a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 221 additions and 207 deletions

View file

@ -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`)