Skip to content

Commit 82ce53c

Browse files
committed
chore: 添加 beta 发布脚本和说明文档
1 parent c699800 commit 82ce53c

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed

BETA_RELEASE.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Beta 版本发布说明
2+
3+
## 当前 Beta 版本
4+
5+
- **版本**: 3.0.0-beta.1
6+
- **Git 标签**: `3.0.0-beta.1`
7+
- **提交**: `c1ff1fe0f`
8+
9+
## 主要变更
10+
11+
### 移除 antd 低版本兼容性代码
12+
13+
- 删除了 `compareVersions` 工具函数
14+
- 删除了 `coverToNewToken` 兼容性函数
15+
- 简化了消息警告兼容性代码
16+
- 移除了版本检查警告
17+
- 更新了文档中的版本要求说明
18+
19+
### 版本要求
20+
21+
- 现在要求 antd >= 5.11.2
22+
- 移除了对 antd@4 的兼容性支持
23+
24+
## 发布流程
25+
26+
### 1. 设置 npm 标签
27+
28+
```bash
29+
npm config set tag beta
30+
```
31+
32+
### 2. 发布 beta 版本
33+
34+
```bash
35+
npm run publish:beta
36+
```
37+
38+
### 3. 验证发布
39+
40+
```bash
41+
npm view @ant-design/pro-components@beta
42+
```
43+
44+
## 安装 beta 版本
45+
46+
```bash
47+
npm install @ant-design/pro-components@beta
48+
```
49+
50+
或者
51+
52+
```bash
53+
yarn add @ant-design/pro-components@beta
54+
```
55+
56+
或者
57+
58+
```bash
59+
pnpm add @ant-design/pro-components@beta
60+
```
61+
62+
## 注意事项
63+
64+
- Beta 版本可能包含不稳定的功能
65+
- 建议在测试环境中使用
66+
- 如果发现问题,请及时反馈
67+
- 正式版本发布前会进行充分测试

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"test:update": "cross-env TZ=UTC vitest -u",
4646
"tsc": "tsc --noEmit",
4747
"prepublishOnly": "npm run test && npm run build",
48+
"publish:beta": "npm publish --tag beta",
4849
"update:deps": "pnpm up --latest"
4950
},
5051
"browserslist": [

0 commit comments

Comments
 (0)