Repository navigation
docs(release): 发版必须建 GitHub Release 并附三个预构建资产 - #16
Merged
Merged
Conversation
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.
改动
打 tag 之后没有 Release,用户既看不到产物也装不了:桥插件的
lib/是构建产物、不入库,dsh plugin add github:graydovee/dsh-browser#path:/packages/browser/bridge-browser会退出 0 却装出没有lib/的包(加载报ERR_MODULE_NOT_FOUND);浏览器扩展只能由用户以「已解压扩展」加载。所以发版必须同时产出三个预构建资产。AGENTS.mdlatest/download契约)与一条命令的发版方式。scripts/补上release.sh。.agents/notes/release.md(新增):完整发布流程、资产契约表、手动兜底命令、验收方式(三个latest/download必须 200 + 干净DSH_HOME实装一次)、与上游 PR 的关系、常见故障。scripts/release.sh(新增):构建(桥插件 + Chrome/Firefox 扩展)→ 打包三个 tgz → 校验包内有lib/index.js、cordis.patch.yml、两个manifest.json→ 用两个 CHANGELOG 的对应段落拼中英发布说明 →gh release create(已存在则upload --clobber,显式--repo graydovee/dsh-browser,因为本仓库origin指向上游)→ 校验三个latest/download返回 200。支持--dry-run、--notes-file。资产契约
dsh-bridge-browser.tgz@yuxianglin/dsh-bridge-browser的npm pack产物,含lib/、cordis.patch.yml、locale/dsh-browser-extension.tgzmanifest.jsondsh-browser-extension-firefox.tgzmanifest.json名字不带版本号:awesome 条目的
tarball:用releases/latest/download/dsh-bridge-browser.tgz(latest请求时解析、文件名照字面取)。另一种被接受的形态是钉 tag + 文件名带版本号,代价是每次发版回列表改字段;这里选前者,并由脚本每次校验。验证
bash -n scripts/release.sh语法通过。bash scripts/release.sh v0.1.7 --dry-run:三个构建全跑,产出 112K / 289K / 289K 三个 tgz,包内断言全部通过,未发布任何内容。extensions/、packages/源码,未跑 vitest(按《验证矩阵》纯文档一行)。影响范围
只影响维护者发版流程,对已安装用户无影响。