|
|
@@ -26,7 +26,7 @@ for await (const file of new Bun.Glob("**/package.json").scan({
|
|
|
await Bun.file(file).write(pkg)
|
|
|
}
|
|
|
|
|
|
-// await import(`../packages/opencode/script/publish.ts`)
|
|
|
+await import(`../packages/opencode/script/publish.ts`)
|
|
|
await import(`../packages/sdk/js/script/publish.ts`)
|
|
|
await import(`../packages/plugin/script/publish.ts`)
|
|
|
// await import(`../packages/sdk/stainless/generate.ts`)
|
|
|
@@ -37,10 +37,12 @@ if (!snapshot) {
|
|
|
await $`git push origin HEAD --tags --no-verify`
|
|
|
}
|
|
|
if (snapshot) {
|
|
|
+ await $`git checkout -b snapshot-${version}`
|
|
|
await $`git commit --allow-empty -m "Snapshot release v${version}"`
|
|
|
await $`git tag v${version}`
|
|
|
await $`git push origin v${version} --no-verify`
|
|
|
- await $`git reset --soft HEAD~1`
|
|
|
+ await $`git checkout dev`
|
|
|
+ await $`git branch -D snapshot-${version}`
|
|
|
for await (const file of new Bun.Glob("**/package.json").scan({
|
|
|
absolute: true,
|
|
|
})) {
|