summaryrefslogtreecommitdiffhomepage
path: root/script/publish.ts
diff options
context:
space:
mode:
authorDavid Hill <[email protected]>2025-11-10 13:44:12 +0000
committerDavid Hill <[email protected]>2025-11-10 13:44:12 +0000
commitc6e830c954418808dc39284a1c073aa63a6d4d21 (patch)
tree9c3052e0509115188768a553c0be5a8441ebdd96 /script/publish.ts
parent7088bfabd773e2f076aab1c9d2468c04feff0570 (diff)
parentfc78c28df64383a9f99382093f61fc28caf6569f (diff)
downloadopencode-c6e830c954418808dc39284a1c073aa63a6d4d21.tar.gz
opencode-c6e830c954418808dc39284a1c073aa63a6d4d21.zip
Merge branch 'dev' of https://github.com/sst/opencode into dev
Diffstat (limited to 'script/publish.ts')
-rwxr-xr-xscript/publish.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/script/publish.ts b/script/publish.ts
index 307755a1c..6dc0d9afc 100755
--- a/script/publish.ts
+++ b/script/publish.ts
@@ -21,7 +21,7 @@ if (!Script.preview) {
const commits = log
.split("\n")
- .filter((line) => line && !line.match(/^\w+ (ignore:|test:|chore:)/i))
+ .filter((line) => line && !line.match(/^\w+ (ignore:|test:|chore:|ci:)/i))
.join("\n")
const opencode = await createOpencode()
@@ -83,6 +83,14 @@ for (const file of pkgjsons) {
console.log("updated:", file)
await Bun.file(file).write(pkg)
}
+
+const extensionToml = new URL("../packages/extensions/zed/extension.toml", import.meta.url).pathname
+let toml = await Bun.file(extensionToml).text()
+toml = toml.replace(/^version = "[^"]+"/m, `version = "${Script.version}"`)
+toml = toml.replaceAll(/releases\/download\/v[^/]+\//g, `releases/download/v${Script.version}/`)
+console.log("updated:", extensionToml)
+await Bun.file(extensionToml).write(toml)
+
await $`bun install`
console.log("\n=== opencode ===\n")