mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-21 09:44:21 +01:00
ci: ignore
This commit is contained in:
@@ -74,6 +74,10 @@ async function main() {
|
|||||||
const versionRegex = new RegExp(`(\\[${EXTENSION_NAME}\\]\\s+(?:.*\\s*)?)version = "[^"]+"`)
|
const versionRegex = new RegExp(`(\\[${EXTENSION_NAME}\\]\\s+(?:.*\\s*)?)version = "[^"]+"`)
|
||||||
const updatedToml = extensionsToml.replace(versionRegex, `$1version = "${cleanVersion}"`)
|
const updatedToml = extensionsToml.replace(versionRegex, `$1version = "${cleanVersion}"`)
|
||||||
|
|
||||||
|
if (updatedToml === extensionsToml) {
|
||||||
|
throw new Error(`Failed to update version in extensions.toml - pattern not found`)
|
||||||
|
}
|
||||||
|
|
||||||
await Bun.write(extensionsTomlPath, updatedToml)
|
await Bun.write(extensionsTomlPath, updatedToml)
|
||||||
await $`git add extensions.toml`
|
await $`git add extensions.toml`
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user