File tree Expand file tree Collapse file tree
.claude/skills/version-upgrade Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ name : version-upgrade
3+ description : 升级项目版本号。当用户要求升级版本、更新版本号、发布新版本时使用此 skill。支持 major(主版本)、minor(次版本)、patch(补丁版本)三种升级方式。
4+ ---
5+
6+ # Version Upgrade
7+
8+ 升级 cloudflare_temp_email 项目版本号。
9+
10+ ## 需要修改的文件
11+
12+ 1 . ` frontend/package.json ` - version 字段
13+ 2 . ` worker/package.json ` - version 字段
14+ 3 . ` worker/src/constants.ts ` - VERSION 常量(格式:` VERSION: 'v' + '1.4.0' ` )
15+ 4 . ` pages/package.json ` - version 字段
16+ 5 . ` vitepress-docs/package.json ` - version 字段
17+ 6 . ` CHANGELOG.md ` - 添加新版本占位符
18+ 7 . ` CHANGELOG_EN.md ` - 添加新版本占位符(英文)
19+
20+ ## 版本升级流程
21+
22+ 1 . 读取 ` frontend/package.json ` 获取当前版本号
23+ 2 . 根据升级类型计算新版本号:
24+ - major: 1.3.0 → 2.0.0
25+ - minor: 1.3.0 → 1.4.0
26+ - patch: 1.3.0 → 1.3.1
27+ 3 . 更新所有 package.json 文件中的 version 字段
28+ 4 . 在 CHANGELOG.md 顶部添加新版本占位符
29+ 5 . 在 CHANGELOG_EN.md 顶部添加新版本占位符
30+
31+ ## CHANGELOG 格式
32+
33+ 中文 (CHANGELOG.md) - 在 ` ## v{OLD_VERSION}(main) ` 之前插入:
34+ ``` markdown
35+ ## v{VERSION}(main)
36+
37+ ### Features
38+
39+ ### Bug Fixes
40+
41+ ### Improvements
42+
43+ ```
44+
45+ 英文 (CHANGELOG_EN.md) - 同样格式。
46+
47+ ## 提交信息格式
48+
49+ ```
50+ feat: upgrade version to v{VERSION}
51+
52+ - Update version number to {VERSION} in all package.json files
53+ - Add v{VERSION} placeholder in CHANGELOG.md
54+ ```
Original file line number Diff line number Diff line change 66 <a href =" CHANGELOG_EN.md " >🇺🇸 English</a >
77</p >
88
9- ## v1.3.0(main)
9+ ## v1.4.0(main)
10+
11+ ### Features
12+
13+ ### Bug Fixes
14+
15+ ### Improvements
16+
17+ ## v1.3.0
1018
1119### Features
1220
Original file line number Diff line number Diff line change 66 <a href =" CHANGELOG_EN.md " >🇺🇸 English</a >
77</p >
88
9- ## v1.3.0(main)
9+ ## v1.4.0(main)
10+
11+ ### Features
12+
13+ ### Bug Fixes
14+
15+ ### Improvements
16+
17+ ## v1.3.0
1018
1119### Features
1220
Original file line number Diff line number Diff line change 11{
22 "name" : " cloudflare_temp_email" ,
3- "version" : " 1.3 .0" ,
3+ "version" : " 1.4 .0" ,
44 "private" : true ,
55 "type" : " module" ,
66 "scripts" : {
Original file line number Diff line number Diff line change 11{
22 "name" : " temp-email-pages" ,
3- "version" : " 1.2.1 " ,
3+ "version" : " 1.4.0 " ,
44 "description" : " " ,
55 "main" : " index.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change 11{
22 "name" : " temp-mail-docs" ,
33 "private" : true ,
4- "version" : " 1.2.1 " ,
4+ "version" : " 1.4.0 " ,
55 "type" : " module" ,
66 "devDependencies" : {
77 "@types/node" : " ^25.1.0" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " cloudflare_temp_email" ,
3- "version" : " 1.3 .0" ,
3+ "version" : " 1.4 .0" ,
44 "private" : true ,
55 "type" : " module" ,
66 "scripts" : {
Original file line number Diff line number Diff line change 11export const CONSTANTS = {
2- VERSION : 'v' + '1.1 .0' ,
2+ VERSION : 'v' + '1.4 .0' ,
33
44 // DB Version
55 DB_VERSION_KEY : 'db_version' ,
You can’t perform that action at this time.
0 commit comments