浏览代码

ci: tweak

Dax Raad 1 年之前
父节点
当前提交
eea45a22fa
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      script/publish.ts

+ 3 - 1
script/publish.ts

@@ -45,7 +45,9 @@ process.chdir(dir)
 if (!snapshot) {
 if (!snapshot) {
   await $`git commit -am "release: v${version}"`
   await $`git commit -am "release: v${version}"`
   await $`git tag 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")
   const previous = await fetch("https://api.github.com/repos/sst/opencode/releases/latest")
     .then((res) => {
     .then((res) => {