Commit 3856b4a 1 parent 88eab2d commit 3856b4a Copy full SHA for 3856b4a
File tree 4 files changed +9
-1
lines changed
4 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ npx vr publish
69
69
| ---------------------- | ------------------- |
70
70
| -r --remote \< remote\> | Specify remote name |
71
71
| -s --skip-npm-publish | Skip npm publish |
72
+ | -sc --skip-changelog | Skip generate changelog |
72
73
| -sgt --skip-git-tag | Skip git tag |
73
74
74
75
#### changelog
@@ -129,6 +130,7 @@ function updateVersion(version: string): void
129
130
interface ReleaseCommandOptions {
130
131
remote? : string
131
132
skipNpmPublish? : boolean
133
+ skipChangelog? : boolean
132
134
skipGitTag? : boolean
133
135
task? (): Promise <void >
134
136
}
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ npx vr publish
69
69
| ---------------------- | ---------------- |
70
70
| -r --remote \< remote\> | 指定远程仓库名称 |
71
71
| -s --skip-npm-publish | 跳过 npm 发布 |
72
+ | -sc --skip-changelog | 跳过生成变更日志 |
72
73
| -sgt --skip-git-tag | 跳过 git tag |
73
74
74
75
#### changelog
@@ -129,6 +130,7 @@ function updateVersion(version: string): void
129
130
interface ReleaseCommandOptions {
130
131
remote? : string
131
132
skipNpmPublish? : boolean
133
+ skipChangelog? : boolean
132
134
skipGitTag? : boolean
133
135
task? (): Promise <void >
134
136
}
Original file line number Diff line number Diff line change 8
8
. command ( 'release' )
9
9
. option ( '-r --remote <remote>' , 'Remote name' )
10
10
. option ( '-s --skip-npm-publish' , 'Skip npm publish' )
11
+ . option ( '-sc --skip-changelog' , 'Skip generate changelog' )
11
12
. option ( '-sgt --skip-git-tag' , 'Skip git tag' )
12
13
. description ( 'Release all packages and generate changelogs' )
13
14
. action ( async ( options ) => release ( options ) )
Original file line number Diff line number Diff line change @@ -157,6 +157,7 @@ async function getReleaseType(): Promise<ReleaseType> {
157
157
export interface ReleaseCommandOptions {
158
158
remote ?: string
159
159
skipNpmPublish ?: boolean
160
+ skipChangelog ?: boolean
160
161
skipGitTag ?: boolean
161
162
task ?( ) : Promise < void >
162
163
}
@@ -203,7 +204,9 @@ export async function release(options: ReleaseCommandOptions) {
203
204
}
204
205
205
206
if ( ! isPreRelease ) {
206
- await changelog ( )
207
+ if ( ! options . skipChangelog ) {
208
+ await changelog ( )
209
+ }
207
210
await pushGit ( expectVersion , options . remote , options . skipGitTag )
208
211
}
209
212
You can’t perform that action at this time.
0 commit comments