Repository navigation
fix(ci): 桌面端发布把最高版本标为 Latest,不再写死 --latest=false - #2052
Merged
Merged
Conversation
desktop-release.yml 创建发布时固定传 --latest=false(#1985 引入,为了让旧 SwiftUI 客户端读 releases/latest 的 appcast 不受影响),导致 desktop-v0.7.0 起每次发布都不是 Latest,0.8.0 是手动补标的。现在发布前取已发布的 desktop-v* 正式版最高版本,本次版本 不低于它就标 Latest;对旧标签重跑工作流时不会抢走新版本的 Latest。release-lithe Skill 的发布前检查补上“桌面端发布必须是 Latest”。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1lck
marked this pull request as ready for review
November 16, 2026 13:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联 Issue / Linked issue
PR 类型 / Type
改动说明 / What changes
背景 / Why
desktop-v0.8.1发布后,GitHub 上的 Latest 仍然停在 0.8.0,而 0.8.0 的 Latest 也是事后手动补标的。这会让releases/latest链接和 README 里的下载链接都打开旧版本。改动 / Changes
.github/workflows/desktop-release.yml的releasejob:desktop-v*正式版里的最高版本,不含草稿和预发布。--latest=true,否则传--latest=false。workflow_dispatch给旧标签重新跑发布时,不会把 Latest 从更新的版本上抢走。.agents/skills/release-lithe/SKILL.md的“Validate before publishing”:新增一条检查,桌面端发布要确认 GitHub 上是 Latest,并且最高版本的发布不得传--latest=false。不在本 PR 范围内 / Out of scope
desktop-v0.8.1由维护者要求后手动补标为 Latest,不需要重跑工作流。releases/latest/download/appcast-*.xml和latest-macos.json。0.8.0 被标为 Latest 后,这两个文件在 Latest 下就不存在了,这个 PR 没有改变这一点。旧客户端只能手动下载新客户端,或者通过 Homebrew 升级(release: Homebrew 配方升级到 0.8.1,tap 地址改回本仓库 #2050)。类型专属:fix
复现与根因
desktop-v0.8.1标签后,Desktop Release run 43868878411 成功。实际结果:gh api repos/1lck/Lithe-IDEA/releases/latest返回的仍是desktop-v0.8.0。期望结果:返回desktop-v0.8.1。3aa90b1aa)在releasejob 里固定传了--latest=false,注释是“Keep the legacy clients' latest release unchanged”,目的是不让旧 SwiftUI 客户端的 appcast 失效。之后 0.7.0、0.8.0、0.8.1 三次发布都没有标 Latest。0.8.0 被手动标成 Latest 以后,这条限制已经保护不了旧客户端,只剩下让每次发布都漏标的副作用。检查项
--latest=false的只有publish-update-feed.sh,它对应的desktop-update-feed是预发布,不应该标 Latest,保持不变.agents/notes/implemented/bug-fix/记录:约束已写进 release-lithe Skill 的发布前检查,不再另写 Note范围检查 / Scope checks
N/A:只改了发布工作流和 Skill,没有产品代码,不涉及功能矩阵、插件归属、UI、日志、i18n、逻辑归属、性能、设置、插件契约和发行包资源。
验证 / Verification
actionlint .github/workflows/desktop-release.ymlsort -V把 0.8.10 排在 0.8.9 之后未能执行的检查和原因: 没有为验证这个改动专门再发一次版。改动会在下一次
desktop-v*发布时生效,届时按 Skill 新增的检查确认发布是 Latest。提交前确认 / Final checks
main创建;目标分支:feat、fix、docs 为main,release 以发布流程要求为准.build/、target/、dist/、.artifacts/等产物,没有凭据、个人路径和未脱敏的日志或截图🤖 Generated with Claude Code