feat(cli): use --no-cli
to publish locally w/o prompt
This commit is contained in:
parent
b39fecbdc2
commit
f2c701ca1b
@ -72,7 +72,7 @@ if (~argv._.indexOf('post')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function confirmCI (cb) {
|
function confirmCI (cb) {
|
||||||
if (process.env.CI) return cb(null, true)
|
if (process.env.CI || argv.ci === false) return cb(null, true)
|
||||||
|
|
||||||
confirm('Not running in a CI enviroment. Are you sure you want to run this hook?', function (ok) {
|
confirm('Not running in a CI enviroment. Are you sure you want to run this hook?', function (ok) {
|
||||||
if (!ok) process.exit(1)
|
if (!ok) process.exit(1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user