@gumpwang/agent-workflow 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 +15 -0
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -107,3 +107,18 @@ npx skills add wanggang316/agent-workflow --skill write-workflow -g
107
107
  ```
108
108
 
109
109
  skill 会先检查 `agent-workflow` 是否安装、rule set 是否存在、`validate` 是否通过,再访谈需求、写出 workflow、绑定到项目并验证。
110
+
111
+ ## 发布
112
+
113
+ 在 main 上运行发布脚本(Claude Code 里可用 `/release`):
114
+
115
+ ```bash
116
+ scripts/release.sh patch --dry-run # checks and tests only
117
+ scripts/release.sh patch # or minor / major / X.Y.Z
118
+ ```
119
+
120
+ 脚本检查当前在 main、工作区干净、与 `origin/main` 一致、版本未发布,跑 `npm test`,再用 `npm version` 提交并打 tag,推送后跟踪 Release workflow 直到 npm 上出现新版本。
121
+
122
+ 推送 `v*` tag 后,`.github/workflows/release.yml` 会检查 tag 与 `package.json` 版本一致,跑 `npm test`,通过 npm trusted publishing 发布到 npm,再创建 GitHub release。不用脚本时,`npm version patch && git push --follow-tags` 效果相同,只是没有检查和跟踪。
123
+
124
+ 一次性设置:在 npmjs.com 的包设置 → Trusted Publisher 里添加 GitHub Actions,仓库 `wanggang316/agent-workflow`,workflow 文件 `release.yml`。之后不需要 npm token。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gumpwang/agent-workflow",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Dispatch Linear or GitHub issues to coding agent CLIs through declarative workflows.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -25,6 +25,7 @@
25
25
  "scripts": {
26
26
  "build": "tsup",
27
27
  "prepack": "tsup",
28
+ "release": "scripts/release.sh",
28
29
  "dispatch": "./bin/agent-workflow dispatch",
29
30
  "dispatch:dry": "./bin/agent-workflow dispatch --dry-run",
30
31
  "dispatch:status": "./bin/agent-workflow status",