felo-ai 0.2.23 → 0.2.24
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/.github/workflows/publish-npm.yml +8 -0
- package/README.md +31 -0
- package/package.json +2 -2
|
@@ -21,6 +21,14 @@ jobs:
|
|
|
21
21
|
with:
|
|
22
22
|
fetch-depth: 0
|
|
23
23
|
|
|
24
|
+
- name: Sync package.json version from tag
|
|
25
|
+
run: |
|
|
26
|
+
VERSION=${GITHUB_REF_NAME#v}
|
|
27
|
+
echo "Tag ref: $GITHUB_REF"
|
|
28
|
+
echo "Tag name: $GITHUB_REF_NAME"
|
|
29
|
+
echo "Setting package.json version to: $VERSION"
|
|
30
|
+
npm version "$VERSION" --no-git-tag-version
|
|
31
|
+
|
|
24
32
|
- name: Setup Node.js
|
|
25
33
|
uses: actions/setup-node@v4
|
|
26
34
|
with:
|
package/README.md
CHANGED
|
@@ -217,6 +217,37 @@ We welcome contributions — report bugs, improve docs, or add new skills. Run t
|
|
|
217
217
|
|
|
218
218
|
---
|
|
219
219
|
|
|
220
|
+
## 发布到 npm(维护者)
|
|
221
|
+
|
|
222
|
+
本仓库通过 GitHub Actions 自动发布到 npm,**不要手动在 CI 里改版本号或重复发布相同版本**。
|
|
223
|
+
|
|
224
|
+
- **发布一个新版本**
|
|
225
|
+
1. 确保代码已推到 `main`(或你用来发布的分支)
|
|
226
|
+
2. 选择一个**尚未在 npm 上使用过的新版本号**(语义化版本号 `MAJOR.MINOR.PATCH`)
|
|
227
|
+
3. 在本地打 tag 并推送,例如:
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
git tag v0.2.24
|
|
231
|
+
git push origin v0.2.24
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
4. GitHub Actions 会在 `push tag v*` 时自动运行:
|
|
235
|
+
- 从 tag 名中取出版本号(`v0.2.24` → `0.2.24`)
|
|
236
|
+
- 将 `package.json` 中的 `"version"` 同步为该版本号
|
|
237
|
+
- 运行测试
|
|
238
|
+
- 执行 `npm publish --provenance --access public`
|
|
239
|
+
|
|
240
|
+
- **版本号约定(建议)**
|
|
241
|
+
- **PATCH(补丁号)**:向下兼容的小修小补(bugfix、文档更新等),例如 `0.2.23` → `0.2.24`
|
|
242
|
+
- **MINOR(次版本号)**:向下兼容的新功能,例如新增子命令或新的 skill,`0.2.0` → `0.3.0`
|
|
243
|
+
- **MAJOR(主版本号)**:有破坏性改动时使用,例如 CLI 行为或配置不兼容旧版本,`0.x.x` → `1.0.0`
|
|
244
|
+
|
|
245
|
+
- **注意事项**
|
|
246
|
+
- npm 不允许覆盖已发布的版本,**不要重复推送同一个版本号的 tag**(例如已经发布了 `0.2.23`,再次尝试发布会收到 403 错误)
|
|
247
|
+
- 如果某个已发布版本存在严重问题,可考虑通过 `npm deprecate` 标记为不推荐使用,而不是尝试覆盖它
|
|
248
|
+
|
|
249
|
+
---
|
|
250
|
+
|
|
220
251
|
## License
|
|
221
252
|
|
|
222
253
|
MIT — see [LICENSE](./felo-search/LICENSE) for details.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "felo-ai",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.24",
|
|
4
4
|
"description": "Felo AI CLI - real-time search, PPT generation, SuperAgent conversation, LiveDoc management, web fetch, YouTube subtitles, LiveDoc knowledge base, and X (Twitter) search from the terminal",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/cli.js",
|
|
@@ -38,4 +38,4 @@
|
|
|
38
38
|
"test": "node --test tests/",
|
|
39
39
|
"publish": "npm publish"
|
|
40
40
|
}
|
|
41
|
-
}
|
|
41
|
+
}
|