Skip to content

Commit c8bfc59

Browse files
committed
chore: add otp for npm publish
1 parent b379f82 commit c8bfc59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/release.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const pkg = require(pkgPath);
8080
process.exit(1);
8181
}
8282
// use npm pack --dry-run to check publish pack
83-
await $`npm publish`;
83+
await $`npm publish -otp=${await question('Input the OTP: ')}`;
8484
succeeDoneLog();
8585

8686
infoLog(`10. git push`);

0 commit comments

Comments
 (0)