dsh-auto-check 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 +14 -4
  2. package/package.json +4 -1
package/README.md CHANGED
@@ -67,7 +67,7 @@ node --check client.js
67
67
 
68
68
  ## 发布到 npm
69
69
 
70
- 仓库包含 `.github/workflows/publish.yml`:推送 `v*` tag 时测试并发布到 npm,使用 Trusted Publishing(OIDC),不保存长期 npm token。
70
+ 仓库包含 `.github/workflows/publish.yml`:推送 `v*` tag 时测试并**暂存**发布到 npm,使用 Trusted Publishing(OIDC),不保存长期 npm token。
71
71
 
72
72
  首次发布需要手动认领包名:
73
73
 
@@ -78,9 +78,9 @@ npm publish --registry=https://registry.npmjs.org --access public
78
78
 
79
79
  然后在 npmjs.com 的包设置 → Trusted Publishing 中添加 GitHub Actions:
80
80
 
81
- - Owner: `ltzXiaoYanMo`
82
- - Repository: `dsh-auto-check`
83
- - Workflow: `publish.yml`
81
+ - Owner:`ltzXiaoYanMo`
82
+ - Repository:`dsh-auto-check`
83
+ - Workflow:`publish.yml`
84
84
 
85
85
  之后的发布流程:
86
86
 
@@ -89,5 +89,15 @@ git tag v0.1.1
89
89
  git push origin v0.1.1
90
90
  ```
91
91
 
92
+ 工作流以 `npm stage publish` 把版本放入 npm 暂存区;因为 Trusted Publisher 配置的是 `npm stage publish` 权限,最终发布需要维护者完成 2FA 审批:
93
+
94
+ ```powershell
95
+ npm login --registry=https://registry.npmjs.org
96
+ npm stage list
97
+ npm stage approve <stage-id>
98
+ ```
99
+
100
+ 也可以在 npmjs.com 的包页面完成审批。
101
+
92
102
  `dsh-plugins` 是仓库里程碑 tag,不会触发 npm 发布。
93
103
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-auto-check",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Give DeepSeek Harness Auto review its own reviewer model instead of following the main model.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -45,5 +45,8 @@
45
45
  "@deepseek-ai/dsh-api-remotes"
46
46
  ]
47
47
  }
48
+ },
49
+ "dependencies": {
50
+ "dsh-auto-check": "^0.1.0"
48
51
  }
49
52
  }