Skip to content

Commit

Permalink
Always use npm.tag if provided when resolving tag (fixes #586)
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Feb 18, 2020
1 parent 0e62393 commit 39dcc22
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/plugin/npm/npm.js
Expand Up @@ -162,8 +162,13 @@ class npm extends Plugin {
}

async resolveTag(version) {
const { tag } = this.options;
const { isPreRelease, preReleaseId } = parseVersion(version);
return !isPreRelease ? DEFAULT_TAG : preReleaseId || (await this.guessPreReleaseTag());
if (!isPreRelease) {
return DEFAULT_TAG;
} else {
return tag || preReleaseId || (await this.guessPreReleaseTag());
}
}

async publish({ otp = this.options.otp, otpCallback } = {}) {
Expand Down

0 comments on commit 39dcc22

Please sign in to comment.