diff --git a/package.json b/package.json index d9ed25d7..8fbdd7e2 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "is-scoped": "^2.1.0", "issue-regex": "^3.1.0", "listr": "^0.14.3", - "listr-input": "^0.2.0", + "listr-input": "^0.2.1", "log-symbols": "^3.0.0", "meow": "^6.0.0", "new-github-release-url": "^1.0.0", diff --git a/source/npm/handle-npm-error.js b/source/npm/handle-npm-error.js index d3390151..36586c93 100644 --- a/source/npm/handle-npm-error.js +++ b/source/npm/handle-npm-error.js @@ -18,7 +18,8 @@ const handleNpmError = (error, task, message, executor) => { done: otp => { task.title = title; return executor(otp); - } + }, + autoSubmit: value => value.length === 6 }).pipe( catchError(error => handleNpmError(error, task, 'OTP was incorrect, try again:', executor)) );