File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ const knownOptions = {
21
21
version : Boolean ,
22
22
help : Boolean ,
23
23
keychain : Boolean ,
24
+ npm : Boolean ,
24
25
'ask-for-passwords' : Boolean ,
25
26
'gh-token' : String ,
26
27
'npm-token' : String ,
@@ -63,6 +64,7 @@ Options:
63
64
--npm-token=<String> npm auth token
64
65
--circle-token=<String> CircleCI auth token
65
66
--npm-username=<String> npm username
67
+ --no-npm Do not setup npm.
66
68
67
69
Aliases:
68
70
init setup` ) ;
@@ -84,7 +86,9 @@ Aliases:
84
86
85
87
try {
86
88
await require ( './lib/repository' ) ( pkg , info ) ;
87
- await require ( './lib/npm' ) ( pkg , info ) ;
89
+ if ( info . options . npm ) {
90
+ await require ( './lib/npm' ) ( pkg , info ) ;
91
+ }
88
92
await require ( './lib/github' ) ( info ) ;
89
93
await require ( './lib/ci' ) ( pkg , info ) ;
90
94
} catch ( error ) {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const cis = {
17
17
const message = `
18
18
${ _ . repeat ( '-' , 46 ) }
19
19
GH_TOKEN=${ info . github . token }
20
- NPM_TOKEN= ${ info . npm . token }
20
+ ${ info . options . npm ? "NPM_TOKEN=" + info . npm . token : "" }
21
21
${ _ . repeat ( '-' , 46 ) }
22
22
` ;
23
23
console . log ( message ) ;
You can’t perform that action at this time.
0 commit comments