Skip to content

Commit 71dc87f

Browse files
committed
feat: support CODECOV_TOKEN
1 parent fc4efa3 commit 71dc87f

File tree

3 files changed

+26
-8
lines changed

3 files changed

+26
-8
lines changed

.github/workflows/node-test-mysql.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Node.js Unit Test
22

33
on:
44
workflow_call:
5+
secrets:
6+
CODECOV_TOKEN:
7+
description: 'codecov token'
8+
required: false
9+
510
inputs:
611
os:
712
type: string

.github/workflows/node-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Node.js Unit Test
22

33
on:
44
workflow_call:
5+
secrets:
6+
CODECOV_TOKEN:
7+
description: 'codecov token'
8+
required: false
9+
510
inputs:
611
os:
712
type: string

README.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ name: CI
3535
on:
3636
push:
3737
branches: [ master, main ]
38-
3938
pull_request:
4039
branches: [ master, main, next, beta, '*.x' ]
4140

@@ -46,7 +45,9 @@ jobs:
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
5758
on:
5859
push:
5960
branches: [ master ]
60-
6161
pull_request:
6262
branches: [ master ]
6363

@@ -67,6 +67,8 @@ jobs:
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
9698
perf(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
### 配置方式
@@ -131,7 +140,6 @@ on:
131140
# 合并后自动发布
132141
push:
133142
branches: [ master, main, next, beta, '*.x' ]
134-
135143
# 手动发布
136144
workflow_dispatch: {}
137145

0 commit comments

Comments
 (0)