Skip to content

Commit

Permalink
fix: avoid multiple verifyConditions invocation
Browse files Browse the repository at this point in the history
closes #414
  • Loading branch information
antongolub committed Oct 27, 2021
1 parent 7c55636 commit 66eb0e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 66eb0e4

Please sign in to comment.