Skip to content

Commit

Permalink
fix(publish): fix set isProdRelease
Browse files Browse the repository at this point in the history
  • Loading branch information
lgaticaq committed Apr 15, 2020
1 parent 84ef71a commit 747a39b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module.exports = async (pluginConfig, { nextRelease: { version }, logger }) => {
const minor = semver.minor(version)
const patch = semver.patch(version)
const prerelease = semver.prerelease(version)
const isProdRelease = prerelease.length === 0
const isProdRelease = !prerelease || prerelease.length === 0

// first release version as it is
await publish(version)
Expand Down

0 comments on commit 747a39b

Please sign in to comment.