Skip to content

Commit

Permalink
Skip publish prompt when package.json has private: true (fixes #936)
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Mar 9, 2023
1 parent 56787b5 commit c0afe65
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/plugin/npm/npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ class npm extends Plugin {

release() {
if (this.options.publish === false) return false;
if (this.getContext('private')) return false;
const publish = () => this.publish({ otpCallback });
const otpCallback =
this.config.isCI && !this.config.isPromptOnlyVersion ? null : task => this.step({ prompt: 'otp', task });
Expand Down

0 comments on commit c0afe65

Please sign in to comment.