Skip to content

Commit 66eb0e4

Browse files
committed
fix: avoid multiple verifyConditions invocation
closes #414
1 parent 7c55636 commit 66eb0e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ async function verifyConditions(pluginConfig, context) {
3232
const pkg = await getPkg(pluginConfig, context);
3333

3434
// Verify the npm authentication only if `npmPublish` is not false and `pkg.private` is not `true`
35-
if (pluginConfig.npmPublish !== false && pkg.private !== true) {
35+
if (!verified && pluginConfig.npmPublish !== false && pkg.private !== true) {
3636
await verifyNpmAuth(npmrc, pkg, context);
3737
}
3838
} catch (error) {

0 commit comments

Comments
 (0)