@@ -35,7 +35,6 @@ name: CI
3535on :
3636 push :
3737 branches : [ master, main ]
38-
3938 pull_request :
4039 branches : [ master, main, next, beta, '*.x' ]
4140
4645 # 支持以下自定义配置,一般用默认值即可
4746 # with:
4847 # os: 'ubuntu-latest, macos-latest, windows-latest'
49- # version: '16, 18, 20'
48+ # version: '16, 18, 20, 22'
49+ # secrets:
50+ # CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5051```
5152
5253### 开启 MySQL 和 Redis 服务依赖
@@ -57,7 +58,6 @@ name: CI
5758on :
5859 push :
5960 branches : [ master ]
60-
6161 pull_request :
6262 branches : [ master ]
6363
6767 uses : node-modules/github-actions/.github/workflows/node-test-mysql.yml@master
6868 with :
6969 os : ' ubuntu-latest'
70+ # secrets:
71+ # CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
7072```
7173
7274## 发布 NPM 包
@@ -90,23 +92,30 @@ jobs:
9092
9193根据 Commit Message 自动计算下一个版本号:
9294
93- - major 大版本:`BREAKING CHANGE`,必须加到 commit body 里面而不是第一行标题,否则不生效
95+ - major 大版本:` BREAKING CHANGE: ` ,必须加到 commit body 里面而不是第一行标题,否则不生效
9496
9597``` bash
9698perf(pencil): remove graphiteWidth option
9799
98- BREAKING CHANGE: The graphiteWidth option has been removed. The default graphite width of 10mm is always used for performance reason.
100+ BREAKING CHANGE: The graphiteWidth option has been removed.
101+ The default graphite width of 10mm is always used for performance reason.
102+ ```
103+
104+ ``` bash
105+ feat: support WebStream
106+
107+ BREAKING CHANGE: Drop Node.js < 18 support
99108```
100109
101110- minor 特性版本: ` feat: ` 等
102- - patch 补丁版本:`fix:` 等
111+ - patch 补丁版本:` fix: ` / ` Revert ` 等
103112- 不发布版本: ` chore: ` / ` docs: ` / ` style: ` 等
104113- 详见:< https://github.com/semantic-release/commit-analyzer >
105114
106115** 注意:**
107116
108117- 不支持发布 0.x 版本,master 首次发布将是 1.0.0 版本
109- - 如果你不期望直接发布,请在 beta 分支提交代码运行,将发布 `1.0.0-beta.1` 版本
118+ - 如果你不期望直接发布,请在 ` beta ` 分支提交代码运行,将发布 ` 1.0.0-beta.1 ` 版本
110119- 多版本发布实践参见 [ semantic-release] ( https://semantic-release.gitbook.io/semantic-release/recipes/release-workflow/distribution-channels ) 文档
111120
112121### 配置方式
131140 # 合并后自动发布
132141 push :
133142 branches : [ master, main, next, beta, '*.x' ]
134-
135143 # 手动发布
136144 workflow_dispatch : {}
137145
0 commit comments