dsh-lead-mode 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +26 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -141,6 +141,32 @@ node scripts/check-patch.mjs
141
141
 
142
142
  测试零依赖,不用 `npm install`。`test/` 目录形式只在 Node 22+ 被接受,Node 20 会用 glob 展开。
143
143
 
144
+ ## 发新版本
145
+
146
+ 推 tag 触发 `.github/workflows/release.yml`,发布走 npm 的 Trusted Publishing(OIDC)。不存 token,也不弹 2FA。
147
+
148
+ 发之前先在 npmjs.com 配一次 Trusted Publisher:
149
+
150
+ | 字段 | 填什么 |
151
+ |---|---|
152
+ | Organization or user | `xiebaiyuan` |
153
+ | Repository | `dsh-lead-mode` |
154
+ | Workflow filename | `release.yml` |
155
+ | Allowed actions | 勾上 `npm publish` |
156
+
157
+ `npm stage publish` 是默认就允许的,只勾它的话 CI 只能暂存,还得人工 approve 才上线。
158
+
159
+ 配好后:
160
+
161
+ ```bash
162
+ npm version patch --no-git-tag-version # 改 package.json 的版本
163
+ git commit -am "chore: bump to 0.1.1"
164
+ git tag v0.1.1
165
+ git push origin main --tags
166
+ ```
167
+
168
+ tag 的版本必须和 `package.json` 一致,否则 workflow 直接退出,不发。同一个版本发第二次会被 npm 拒掉,所以每次发都要先提版本号。
169
+
144
170
  ## License
145
171
 
146
172
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-lead-mode",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Lead 模式:一个 agent 预设、一个 skill、两条依赖提醒。预设与官方 standard 的差异只有 persona 一处。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",