[{"data":1,"prerenderedAt":274,"buildId":275},["ShallowReactive",2],{"-zh-cn-guides-publication-results":3,"-zh-cn-guides-publication-results-surround":216,"navigation_docs_zh_cn":226},{"id":4,"title":5,"body":6,"description":207,"extension":208,"links":209,"meta":210,"navigation":211,"path":212,"seo":213,"stem":214,"__hash__":215},"docs_zh_cn\u002Fzh-cn\u002Fguides\u002F6.publication-results.md","npm 发布结果",{"type":7,"value":8,"toc":201},"minimark",[9,18,22,122,147,150,192],[10,11,12,13,17],"p",{},"在发布任务摘要或同次运行的 ",[14,15,16],"code",{},"publication-result.json"," 中核对包名、版本和 tarball 摘要。后续 GitHub Release 或文档部署失败时，这份回执仍可用于核对 npm 发布结果。",[19,20,21],"h2",{"id":21},"回执字段",[23,24,25,38],"table",{},[26,27,28],"thead",{},[29,30,31,35],"tr",{},[32,33,34],"th",{},"核对内容",[32,36,37],{},"JSON 字段",[39,40,41,63,89,106],"tbody",{},[29,42,43,47],{},[44,45,46],"td",{},"记录格式",[44,48,49,52,53,56,57,52,60],{},[14,50,51],{},"schemaVersion"," 为 ",[14,54,55],{},"1","，",[14,58,59],{},"status",[14,61,62],{},"published",[29,64,65,68],{},[44,66,67],{},"包与版本",[44,69,70,73,74,73,77,80,81,84,85,88],{},[14,71,72],{},"repository","、",[14,75,76],{},"packageName",[14,78,79],{},"version","（registry 版本）、",[14,82,83],{},"sourceVersion","（含构建元数据）、",[14,86,87],{},"npmTag","（解析后的 dist-tag）",[29,90,91,94],{},[44,92,93],{},"来源与内容",[44,95,96,73,99,73,102,105],{},[14,97,98],{},"releaseTag",[14,100,101],{},"sourceSha",[14,103,104],{},"tarballSha256","（发布前复核的原始文件摘要）",[29,107,108,111],{},[44,109,110],{},"GitHub 运行",[44,112,113,73,116,73,119],{},[14,114,115],{},"runId",[14,117,118],{},"runAttempt",[14,120,121],{},"runUrl",[10,123,124,127,128,131,132,73,135,73,137,127,140,143,144,146],{},[14,125,126],{},"publish-npm"," 和 ",[14,129,130],{},"publish.yml"," 输出 ",[14,133,134],{},"source-sha",[14,136,79],{},[14,138,139],{},"tarball-sha256",[14,141,142],{},"receipt-artifact-name","。按 ",[14,145,142],{}," 下载仅含 JSON 的回执产物，保留期沿用仓库默认值。",[19,148,149],{"id":149},"回执缺失时",[23,151,152,162],{},[26,153,154],{},[29,155,156,159],{},[32,157,158],{},"情况",[32,160,161],{},"结果或处理方式",[39,163,164,172,180],{},[29,165,166,169],{},[44,167,168],{},"候选检查失败、跳过发布或 npm 失败",[44,170,171],{},"不生成成功回执。",[29,173,174,177],{},[44,175,176],{},"任务摘要写入失败",[44,178,179],{},"产生警告，继续上传 JSON，发布输出仍可用。",[29,181,182,189],{},[44,183,184,185,188],{},"npm 成功后写 JSON、",[14,186,187],{},"GITHUB_OUTPUT"," 或上传回执失败",[44,190,191],{},"job 可显示失败，但包已发布。核对 npm 日志、registry 和 provenance，勿重复发布。",[10,193,194,195,200],{},"回执过期也应按包名、版本及来源 SHA 核实。GitHub Release 或文档部署中断时见",[196,197,199],"a",{"href":198},"\u002Fzh-cn\u002Fguides\u002Freleasing#%E5%A4%B1%E8%B4%A5%E6%81%A2%E5%A4%8D","失败恢复","。",{"title":202,"searchDepth":203,"depth":203,"links":204},"",2,[205,206],{"id":21,"depth":203,"text":21},{"id":149,"depth":203,"text":149},"在发布任务摘要或同次运行的 publication-result.json 中核对包名、版本和 tarball 摘要。后续 GitHub Release 或文档部署失败时，这份回执仍可用于核对 npm 发布结果。","md",null,{},true,"\u002Fzh-cn\u002Fguides\u002Fpublication-results",{"title":5,"description":207},"zh-cn\u002Fguides\u002F6.publication-results","sp7ARQE7sR-3ReUu4iLEvk5FUxhDlby8_fdtvrNRzDo",[217,221],{"title":218,"path":219,"stem":220,"description":202,"children":-1},"release-it 配置","\u002Fzh-cn\u002Fguides\u002Frelease-it","zh-cn\u002Fguides\u002F5.release-it",{"title":222,"path":223,"stem":224,"description":225,"children":-1},"工作流与 action 接口","\u002Fzh-cn\u002Fguides\u002Farchitecture","zh-cn\u002Fguides\u002F7.architecture","共享工作流使用 GitHub.com 托管的 Ubuntu runner，默认使用 Node 24，也支持 mise。项目配置触发条件、权限和检查。需要其他 runner 或步骤顺序时，在项目 job 中调用公共 composite actions，并在所选 runner 上验证。",[227,241,265],{"title":228,"path":229,"stem":230,"children":231,"page":240},"配置样例","\u002Fzh-cn\u002Fexamples","zh-cn\u002Fexamples",[232,236],{"title":233,"path":234,"stem":235},"从 CI 下载到标签发布","\u002Fzh-cn\u002Fexamples\u002Fdownloads","zh-cn\u002Fexamples\u002F1.downloads",{"title":237,"path":238,"stem":239},"Monorepo 包与文档站","\u002Fzh-cn\u002Fexamples\u002Fmonorepo","zh-cn\u002Fexamples\u002F2.monorepo",false,{"title":242,"path":243,"stem":244,"children":245,"page":240},"指南","\u002Fzh-cn\u002Fguides","zh-cn\u002Fguides",[246,250,254,258,262,263,264],{"title":247,"path":248,"stem":249},"工作流架构","\u002Fzh-cn\u002Fguides\u002Fproject-workflows","zh-cn\u002Fguides\u002F1.project-workflows",{"title":251,"path":252,"stem":253},"接入工作流","\u002Fzh-cn\u002Fguides\u002Fadoption","zh-cn\u002Fguides\u002F2.adoption",{"title":255,"path":256,"stem":257},"发布","\u002Fzh-cn\u002Fguides\u002Freleasing","zh-cn\u002Fguides\u002F3.releasing",{"title":259,"path":260,"stem":261},"部署站点或 Worker","\u002Fzh-cn\u002Fguides\u002Fdeployment","zh-cn\u002Fguides\u002F4.deployment",{"title":218,"path":219,"stem":220},{"title":5,"path":212,"stem":214},{"title":222,"path":223,"stem":224},{"title":266,"path":267,"stem":268,"children":269,"page":240},"仓库维护","\u002Fzh-cn\u002Fmaintenance","zh-cn\u002Fmaintenance",[270],{"title":271,"path":272,"stem":273},"维护 Xova Actions","\u002Fzh-cn\u002Fmaintenance\u002Fverification","zh-cn\u002Fmaintenance\u002F1.verification",1796537881245,"2d28474e-0c56-4c42-95a6-d293d7783a6d"]