@pawover/kit 1.4.0 → 1.4.1-alpha.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.
- package/README.md +4 -4
- package/package.json +7 -6
- package/skills/kit/SKILL.md +1 -1
package/README.md
CHANGED
|
@@ -114,8 +114,8 @@ pnpm install
|
|
|
114
114
|
|
|
115
115
|
由 Changesets v3 + GitHub Actions 驱动的**双通道发布模型**(完整细节见 [.changeset/README.md](./.changeset/README.md)):
|
|
116
116
|
|
|
117
|
-
- **feature = alpha 预发布通道**:push feature 全自动——CI
|
|
118
|
-
- **main =
|
|
117
|
+
- **feature = alpha 预发布通道**:push feature 全自动——CI 前置检查(`verifyReleasePlan.ts`)→ select-mode(决定发布动作)→ version PR → version job 等 CI 绿后合并 → dispatch 触发 publish,发布 `alpha` dist-tag
|
|
118
|
+
- **main = 正式版通道**:只通过**正式版合并**收代码——`pnpm release:merge`(同步校验 → 剥离 prerelease → 检查版本是否已发布 → 建 release-main PR)→ **人工合并 PR**(正式版发布的人工确认节点)→ 发布 `latest` → CI 自动把稳定版版本号同步回 feature(稳定版基线同步,下一轮 alpha 从新稳定版之上递增)
|
|
119
119
|
- **核心设计**:alpha → 正式版之间必须经过人工确认节点,任何自动化都不会越过它
|
|
120
120
|
|
|
121
121
|
常用命令:
|
|
@@ -126,10 +126,10 @@ pnpm install
|
|
|
126
126
|
| 发布 alpha(自动) | `git push origin feature` |
|
|
127
127
|
| 发起正式版发布(人工闸门) | `pnpm release:merge` → 人工合并 PR |
|
|
128
128
|
| 非发布内容同步到 main | `pnpm sync:main` → 人工合并 PR(版本保持 main 侧,不触发发布) |
|
|
129
|
-
|
|
|
129
|
+
| 稳定版基线同步 | 自动(main 发布后 CI 同步);手动方式:feature 上 `git merge origin/main`(取 main 侧版本) |
|
|
130
130
|
| 应急手动发布 | `pnpm pre:enter-alpha && pnpm build && pnpm changeset publish` |
|
|
131
131
|
|
|
132
|
-
> Trusted Publishing / OIDC:全程无需 npm token
|
|
132
|
+
> Trusted Publishing / OIDC:全程无需 npm token;分支保护、检查明细、FAQ 见 `.changeset/README.md`。
|
|
133
133
|
|
|
134
134
|
## 测试
|
|
135
135
|
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"url": "https://github.com/pawover"
|
|
7
7
|
},
|
|
8
8
|
"description": "一个基于 TypeScript 的开发工具包",
|
|
9
|
-
"version": "1.4.0",
|
|
9
|
+
"version": "1.4.1-alpha.0",
|
|
10
10
|
"type": "module",
|
|
11
11
|
"engines": {
|
|
12
12
|
"node": ">=24.22.2"
|
|
@@ -169,10 +169,10 @@
|
|
|
169
169
|
"access": "public"
|
|
170
170
|
},
|
|
171
171
|
"dependencies": {
|
|
172
|
-
"@pawover/kit-eslint-rules": "0.2.0",
|
|
173
|
-
"@pawover/kit-hooks": "0.1.0",
|
|
172
|
+
"@pawover/kit-eslint-rules": "0.2.1-alpha.0",
|
|
173
|
+
"@pawover/kit-hooks": "0.1.1-alpha.0",
|
|
174
174
|
"@pawover/kit-types": "0.2.0",
|
|
175
|
-
"@pawover/kit-utils": "1.1.0",
|
|
175
|
+
"@pawover/kit-utils": "1.1.1-alpha.0",
|
|
176
176
|
"@pawover/kit-zod": "0.1.0"
|
|
177
177
|
},
|
|
178
178
|
"devDependencies": {
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
"test:types": "tsc -p test/tsconfig.json --noEmit",
|
|
253
253
|
"test:smoke": "node test/scripts/smoke.ts",
|
|
254
254
|
"test:global-types": "node test/scripts/globalTypes.ts",
|
|
255
|
-
"test:ci": "pnpm check:skills && pnpm test:types && pnpm check:types:packages && pnpm test && pnpm build && pnpm test:smoke && pnpm test:global-types && pnpm check:pack",
|
|
255
|
+
"test:ci": "pnpm check:changesets && pnpm check:skills && pnpm test:types && pnpm check:types:packages && pnpm test && pnpm build && pnpm test:smoke && pnpm test:global-types && pnpm check:pack",
|
|
256
256
|
"postbuild": "node scripts/syncEntry.ts",
|
|
257
257
|
"build": "turbo build",
|
|
258
258
|
"build:analyze": "cross-env VISUALIZER=1 turbo build",
|
|
@@ -262,7 +262,7 @@
|
|
|
262
262
|
"package": "pnpm pack",
|
|
263
263
|
"public": "turbo build && pnpm publish --access public",
|
|
264
264
|
"changeset": "changeset",
|
|
265
|
-
"ci:version": "pnpm changeset version && node scripts/bumpRoot.ts && node scripts/verifyRelease.ts && pnpm install",
|
|
265
|
+
"ci:version": "pnpm changeset version && node scripts/bumpRoot.ts && node scripts/verifyRelease.ts && pnpm install && node scripts/recordVersionReview.ts",
|
|
266
266
|
"pre:enter-alpha": "pnpm changeset pre enter alpha",
|
|
267
267
|
"pre:exit": "pnpm changeset pre exit",
|
|
268
268
|
"release:merge": "node scripts/releaseMerge.ts",
|
|
@@ -276,6 +276,7 @@
|
|
|
276
276
|
"check:types:packages": "node scripts/checkPackageTypes.ts",
|
|
277
277
|
"check:eslint": "eslint --fix \"**/*.{js,cjs,mjs,ts,cts,mts,jsx,tsx,vue}\" --cache-location=.cache/eslint.cache.json --cache",
|
|
278
278
|
"check:format": "prettier --write \"**/*.{html,json,jsonc}\" --cache-location=.cache/prettier.cache.json --cache",
|
|
279
|
+
"check:changesets": "node scripts/checkChangesets.ts",
|
|
279
280
|
"check:skills": "intent maintainer check",
|
|
280
281
|
"check:pack": "cross-env HUSKY=0 node scripts/checkPack.ts",
|
|
281
282
|
"clean": "pnpm clean:cache & pnpm clean:lib & pnpm clean:output",
|
package/skills/kit/SKILL.md
CHANGED