Skip to content

Commit

Permalink
chore: otp
Browse files Browse the repository at this point in the history
  • Loading branch information
ycjcl868 committed Feb 23, 2021
1 parent 36846f4 commit 705e89e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,11 @@ async function release() {
isNext ? 'with next tag' : ''
}`,
);
const cliArgs = isNext ? ['publish', '--tag', 'next'] : ['publish'];
let cliArgs = isNext ? ['publish', '--tag', 'next'] : ['publish'];
// one-time password from your authenticator
if (args.otp) {
cliArgs = cliArgs.concat(['--otp', args.otp]);
}
const { stdout } = execa.sync('npm', cliArgs, {
cwd: pkgPath,
});
Expand Down

0 comments on commit 705e89e

Please sign in to comment.