From db0ddc90824a4e81a58f9920e36a16e5446ff2fd Mon Sep 17 00:00:00 2001 From: modusensus Date: Thu, 5 Nov 2026 08:44:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=EF=BC=9Amaster=20=E5=B7=B2?= =?UTF-8?q?=E7=A6=81=E7=9B=B4=E6=8E=A8=EF=BC=8C=E5=8F=91=E7=89=88=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E4=B9=9F=E8=B5=B0=20PR=EF=BC=88v0.8.0=20=E5=AE=9E?= =?UTF-8?q?=E5=BD=95=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AGENTS.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 0209be1..4e901c4 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -252,10 +252,18 @@ node install.mjs --profile --uninstall `package.json` 的 `version` 是唯一真相,tag 用 `v<版本>`,CHANGELOG 顶部加一段。三处对齐后: ```bash -git tag -a v0.6.1 -m 'v0.6.1' && git push origin master v0.6.1 -gh release create v0.6.1 --title '…' --notes-file <文件> +git checkout -b feat/v0.8.0 && git push -u origin feat/v0.8.0 +gh pr create --base master --head feat/v0.8.0 --title 'v0.8.0' --body '…' +# CI 过 → gh pr merge --merge --delete-branch +gh workflow run release.yml --ref v0.8.0 +gh release create v0.8.0 --title '…' --notes-file <文件> ``` +**master 现在禁直推**(repository rule,`push declined due to repository rule violations`)—— +发版提交也要走 PR(v0.5.0 / v0.6.0 / v0.6.1 的 `feat/v0.x.y` 就是这么干的;v0.8.0 那次撞过一回墙: +tag 能推上去、master 被拒,tag 指向的提交随后经 PR 进了 master 历史才算落定)。tag 可以在 PR 合入前推, +`release.yml` 检出的是 tag 本身;但 PR 合完之前别触发发布。 + ### 走哪条路 两条都通,**优先走 `release.yml`**(带 provenance 签名,包的可信度更高):