Skip to content

部分发布成功后的元数据对账与恢复 #888

Description

@sonofmagic

发布已完成 npm publish 和 tag 推送,但 GitHub Release 创建阶段返回 502。现有 release notes repair 只能读取并修复已有 Release,无法补建缺失项。

失败现场:https://github.com/sonofmagic/weapp-tailwindcss/actions/runs/34748944107
相关任务:https://github.com/sonofmagic/weapp-tailwindcss/actions/runs/34748944100
Related to #848#887;本 Issue 讨论部分成功后的元数据对账,不涉及 provenance/OIDC 改动。

复现

  1. workspace 版本已发布到 npm,版本 tag 已推送到 origin。
  2. 在 GitHub Release POST 阶段注入 502,使对应 tag 没有 Release。
  3. 执行现有说明修复入口,缺失 Release 不在枚举结果中,无法恢复。

建议与验收

  • 增加显式 --create-missing --tag <package@version> 恢复入口及 --dry-run
  • 核对 npm 精确版本、本地 tag 的提交、远端 tag(兼容 annotated tag)和该提交中的 package manifest;不一致立即失败。
  • 复用 tag 中的 changelog 与现有说明生成逻辑,仅补建缺失元数据,不执行 npm publish、不改版本或 tag。
  • dry-run 完成相同的只读核验与说明生成,但不写入 GitHub。
  • 重复执行不会重复创建;已有且正文一致的 Release 不更新。
  • 覆盖部分成功、dry-run、重复恢复、npm 版本不一致、远端 tag 不一致和 tag 中包版本不一致。

消费方可复现 pnpm 补丁与回归:sonofmagic/weapp-tailwindcss#1197

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions