dsh-token-chart 0.1.0 → 0.1.1-rc.0

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 +2 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -182,6 +182,8 @@ npm version patch # 版本号即 tag,更新检查按版本号比较,
182
182
  npm publish # publishConfig 固定发往 registry.npmjs.org
183
183
  ```
184
184
 
185
+ 发布也可以交给 CI:[.github/workflows/release.yml](.github/workflows/release.yml) 在**推送到 main**(含 PR 合并)与**手动触发**时运行——跑门禁 → 版本还不在 npm 上就自动发布、打 `v<version>` tag、建 GitHub Release;版本已存在则只跑门禁。认证走 **npm Trusted Publishing(OIDC)**,仓库里不存任何 npm token;预发布版本按 preid 走独立 dist-tag(`0.1.1-rc.1` → `rc`),不会顶掉 `latest`。
186
+
185
187
  发布流水线要点:
186
188
 
187
189
  1. **`prepack` = 全量构建 + `scripts/preflight.mjs`**,因此 tarball 一定带着四件产物与 `lib/types`;产物不进 git,`files` 白名单决定包内容。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-token-chart",
3
- "version": "0.1.0",
3
+ "version": "0.1.1-rc.0",
4
4
  "description": "Token usage statistics and chart visualization for DeepSeek Harness: per-session drawer, today / last 3 / last 7 days panel, and chart configuration.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",