codex-quota-chip 0.2.4 → 0.2.6
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.
- package/README.md +7 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -35,11 +35,14 @@ zip 里的 `uninstall.ps1 -Purge`,或手动删那个目录。
|
|
|
35
35
|
发布由 [`.github/workflows/publish.yml`](../.github/workflows/publish.yml) 在 CI 里完成,
|
|
36
36
|
用 **Trusted Publishing(OIDC)**,仓库和本机都不存 npm token:
|
|
37
37
|
|
|
38
|
-
1.
|
|
39
|
-
|
|
38
|
+
1. **先把这次的代码改动提交干净**。产物里会写进打包那一刻的 `HEAD`(就是 `0.2.4+<sha>` 那串),
|
|
39
|
+
先打包后提交的话,它指向的是上一个提交 —— 2026-10-18 的 0.2.4 就是这么来的:功能没错,
|
|
40
|
+
但版本串对不上,事后查证要多花一道功夫。顺序是:改代码 → 提交 → 再打包。
|
|
41
|
+
2. `..\build-publish.ps1 -Version 0.2.1` 出新的 zip,记下它的 sha256
|
|
42
|
+
3. 把本目录 `package.json` 的 `version` 和 `codexQuotaChip.sha256` 一起改成 `0.2.1` / 新哈希,
|
|
40
43
|
并同步 `..\src\CodexQuotaChip\CodexQuotaChip.csproj` 的 `<Version>`,提交
|
|
41
|
-
|
|
42
|
-
|
|
44
|
+
4. 建 GitHub Release `v0.2.1` 并上传 zip(先建 draft、传完资源再公开,免得 CI 抢跑)
|
|
45
|
+
5. Release 一公开,tag 就有了,workflow 自动跑:校验 tag 与 version 一致、校验 Release 上的
|
|
43
46
|
zip 哈希与 `package.json` 一致,然后 `npm publish --provenance`
|
|
44
47
|
|
|
45
48
|
`version` 与 tag 不一致、或 zip 哈希对不上时,workflow **会拒绝发布** —— 因为安装脚本就是按
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codex-quota-chip",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "Windows 任务栏上的 Codex 额度浮窗:装上就有一条 5H/周额度条和右键账号面板",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "easerlee",
|
|
@@ -41,6 +41,6 @@
|
|
|
41
41
|
],
|
|
42
42
|
"codexQuotaChip": {
|
|
43
43
|
"_comment": "sha256 of CodexQuotaChip-<version>-win-x64.zip on the matching GitHub release. Bump it together with version, or the install refuses to run the download.",
|
|
44
|
-
"sha256": "
|
|
44
|
+
"sha256": "c9e60f40d0b8e98e723befc69f140ac0bf06ba64e3ace11f08c89c3717c5e71f"
|
|
45
45
|
}
|
|
46
46
|
}
|