From 66eb0e46e8658c1507e4c3e3f43907af3cfe3711 Mon Sep 17 00:00:00 2001 From: Anton Golub Date: Wed, 27 Oct 2021 22:00:25 +0300 Subject: [PATCH] fix: avoid multiple `verifyConditions` invocation closes #414 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 9eef6e8d..5d9bf4db 100644 --- a/index.js +++ b/index.js @@ -32,7 +32,7 @@ async function verifyConditions(pluginConfig, context) { const pkg = await getPkg(pluginConfig, context); // Verify the npm authentication only if `npmPublish` is not false and `pkg.private` is not `true` - if (pluginConfig.npmPublish !== false && pkg.private !== true) { + if (!verified && pluginConfig.npmPublish !== false && pkg.private !== true) { await verifyNpmAuth(npmrc, pkg, context); } } catch (error) {