mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
ci: auto update zed extension
This commit is contained in:
parent
4271df96d2
commit
79bb22a573
1 changed files with 8 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue