shiguang-reader 1.120.0 → 1.120.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 +22 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # 拾光阅读 · Shiguang Reader
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/shiguang-reader.svg)](https://www.npmjs.com/package/shiguang-reader)
4
+
3
5
  > 把世界关小一点,把书页放大一点。
4
6
 
5
7
  一个装进 DeepSeek Harness 的本地阅读插件:书架、沉浸式阅读、划线想法、书签、搜索、统计,都在同一个安静的面板里。
@@ -29,6 +31,7 @@
29
31
 
30
32
  ### 在线安装(推荐)
31
33
 
34
+ npm:[shiguang-reader](https://www.npmjs.com/package/shiguang-reader)
32
35
  GitHub:[sayhia/shiguang-reader](https://github.com/sayhia/shiguang-reader)
33
36
 
34
37
  在 DeepSeek Harness 的 **设置 → 插件** 中安装 Bundle,二选一:
@@ -71,6 +74,25 @@ npm test # 客户端 + 宿主测试
71
74
 
72
75
  客户端源码在 `source/`,构建产物为 `client.js` 与 `parse-worker.js`。
73
76
 
77
+ ### 自动发布 npm
78
+
79
+ `.github/workflows/publish.yml` 会在 push 到 `main` 时构建、跑测试,并只在版本号尚未发布时执行 `npm publish`。
80
+
81
+ 首次启用需要在 GitHub 仓库添加 Actions secret:
82
+
83
+ ```text
84
+ NPM_TOKEN = 有 publish 权限、并允许绕过 2FA 的 npm Granular Access Token
85
+ ```
86
+
87
+ 之后发布新版本:
88
+
89
+ ```bash
90
+ npm version patch
91
+ git push origin main
92
+ ```
93
+
94
+ 已存在的版本会自动跳过,不会重复发布。
95
+
74
96
  ## 已知边界
75
97
 
76
98
  - 书库目录依赖 Chromium 的 File System Access API;Safari / Firefox 不支持导入。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shiguang-reader",
3
- "version": "1.120.0",
3
+ "version": "1.120.1",
4
4
  "type": "module",
5
5
  "description": "拾光阅读:DeepSeek Harness 本地书架与沉浸式阅读插件。",
6
6
  "exports": {