File tree 2 files changed +13
-3
lines changed
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ const releaseOptions = {
17
17
describe : 'Promote new release of Node.js' ,
18
18
type : 'boolean'
19
19
} ,
20
+ releaseDate : {
21
+ describe : 'Default relase date when --prepare is used. It must be YYYY-MM-DD' ,
22
+ type : 'string'
23
+ } ,
20
24
security : {
21
25
describe : 'Demarcate the new security release as a security release' ,
22
26
type : 'boolean'
@@ -33,9 +37,10 @@ const releaseOptions = {
33
37
describe : 'Mark the release as the transition from Current to LTS' ,
34
38
type : 'boolean'
35
39
} ,
36
- releaseDate : {
37
- describe : 'Default relase date when --prepare is used. It must be YYYY-MM-DD' ,
38
- type : 'string'
40
+ yes : {
41
+ type : 'boolean' ,
42
+ default : false ,
43
+ describe : 'Skip all prompts and run non-interactively'
39
44
}
40
45
} ;
41
46
@@ -70,6 +75,10 @@ function release(state, argv) {
70
75
const cli = new CLI ( logStream ) ;
71
76
const dir = process . cwd ( ) ;
72
77
78
+ if ( argv . yes ) {
79
+ cli . setAssumeYes ( ) ;
80
+ }
81
+
73
82
return runPromise ( main ( state , argv , cli , dir ) ) . catch ( ( err ) => {
74
83
if ( cli . spinner . enabled ) {
75
84
cli . spinner . fail ( ) ;
Original file line number Diff line number Diff line change @@ -223,6 +223,7 @@ Options:
223
223
--prepare Prepare a new release of Node.js [boolean]
224
224
--security Demarcate the new security release as a security release [boolean]
225
225
--startLTS Mark the release as the transition from Current to LTS [boolean]
226
+ --yes Skip all prompts and run non-interactively [boolean]
226
227
--filterLabel Filter PR by label when preparing a security release [string]
227
228
--releaseDate Default relase date when --prepare is used.
228
229
It must be YYYY-MM-DD [string]
You can’t perform that action at this time.
0 commit comments