Add 2fa OTP code to npm dist-tag command too
Brian Vaughn committed
Sep 6, 2018 at 09:49 UTC
8f45a685be1c2f2205684a301cfd23833ee9a478
1 file changed
+1
-1
scripts/release/publish-commands/publish-to-npm.js
+1
-1
@@ -64,7 +64,7 @@ const push = async ({cwd, dry, otp, packages, version, tag}) => {
64
// Update the @next tag to also point to it (so @next doesn't lag behind).
65
if (!isPrerelease) {
66
await execUnlessDry(
67
- `npm dist-tag add ${project}@${packageVersion} next`,
67
+ `npm dist-tag add ${project}@${packageVersion} next ${twoFactorAuth}`,
68
{cwd: path, dry}
69
);
70
}