diff options
| author | Dax Raad <[email protected]> | 2025-08-11 08:41:33 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-08-11 08:54:14 -0400 |
| commit | eea45a22fa3c2dad557f6ff87a824d02572a1105 (patch) | |
| tree | f0fa6638e22fa2004469660b8af9b9220dcf6f85 /script | |
| parent | ddacb04f99ebba52e76bc76b21dcababc9db94c8 (diff) | |
| download | opencode-eea45a22fa3c2dad557f6ff87a824d02572a1105.tar.gz opencode-eea45a22fa3c2dad557f6ff87a824d02572a1105.zip | |
ci: tweak
Diffstat (limited to 'script')
| -rwxr-xr-x | script/publish.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/script/publish.ts b/script/publish.ts index 7a1ec0601..64afcf341 100755 --- a/script/publish.ts +++ b/script/publish.ts @@ -45,7 +45,9 @@ process.chdir(dir) if (!snapshot) { await $`git commit -am "release: v${version}"` await $`git tag v${version}` - await $`git push origin HEAD --tags --no-verify` + await $`git fetch origin` + await $`git cherry-pick HEAD..origin/dev`.nothrow() + await $`git push origin HEAD --tags --no-verify --force` const previous = await fetch("https://api.github.com/repos/sst/opencode/releases/latest") .then((res) => { |
