We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fa02a8 commit cf56622Copy full SHA for cf56622
commands/publish/index.js
@@ -90,9 +90,6 @@ class PublishCommand extends Command {
90
this.logger.verbose("session", npmSession);
91
this.logger.verbose("user-agent", userAgent);
92
93
- // cache to hold a one-time-password across publishes
94
- this.otpCache = { otp: this.options.otp };
95
-
96
this.conf = npmConf({
97
lernaCommand: "publish",
98
npmSession,
@@ -101,6 +98,9 @@ class PublishCommand extends Command {
101
registry: this.options.registry,
102
99
});
103
100
+ // cache to hold a one-time-password across publishes
+ this.otpCache = { otp: this.conf.get("otp") };
+
104
this.conf.set("user-agent", userAgent, "cli");
105
106
if (this.conf.get("registry") === "https://registry.yarnpkg.com") {
0 commit comments