diff options
| author | Dax Raad <[email protected]> | 2025-08-02 18:54:57 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-08-02 18:56:34 -0400 |
| commit | 0ae213ee0e5f8ce8d7a8dae50c70c078ee095ccf (patch) | |
| tree | abf32650931ae7c655906803a4c0e9e963e17f2f /script | |
| parent | ca031278ca9ca30277620e344f7a95c597a8a0de (diff) | |
| download | opencode-0ae213ee0e5f8ce8d7a8dae50c70c078ee095ccf.tar.gz opencode-0ae213ee0e5f8ce8d7a8dae50c70c078ee095ccf.zip | |
ci: ignore
Diffstat (limited to 'script')
| -rwxr-xr-x | script/publish.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/script/publish.ts b/script/publish.ts index d9b08f36e..33813a984 100755 --- a/script/publish.ts +++ b/script/publish.ts @@ -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, })) { |
