summaryrefslogtreecommitdiffhomepage
path: root/script
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-11-07 15:17:19 -0600
committerAiden Cline <[email protected]>2025-11-07 15:17:26 -0600
commit79bb22a5735610e7d7691741865c22808436343c (patch)
tree5d46dbc3eac00d48885c6e490df98a34f706c386 /script
parent4271df96d27965428a547ecf38db75baf169e0a8 (diff)
downloadopencode-79bb22a5735610e7d7691741865c22808436343c.tar.gz
opencode-79bb22a5735610e7d7691741865c22808436343c.zip
ci: auto update zed extension
Diffstat (limited to 'script')
-rwxr-xr-xscript/publish.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/script/publish.ts b/script/publish.ts
index 307755a1c..7cd81d41f 100755
--- a/script/publish.ts
+++ b/script/publish.ts
@@ -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\/v[^/]+\//g, `releases/v${Script.version}/`)
+console.log("updated:", extensionToml)
+await Bun.file(extensionToml).write(toml)
+
await $`bun install`
console.log("\n=== opencode ===\n")