Netflix / unleash

Professionally publish your JavaScript modules in one keystroke
http://netflix.github.io/unleash/
Apache License 2.0
594 stars 26 forks source link

Feature: Prevent bumping version if no new commits #16

Open portokallidis opened 6 years ago

portokallidis commented 6 years ago

How can i prevent bumping the version if the are no commits since previous version?

jameswomack commented 6 years ago

@portokallidis Unleash is currently designed to let you run whatever you want as long as your NPM prepublish script & git repo are in a good state. I am happy to have that changed so that the default is to not allow you to bump unless there have been commits. That could be achieved by updating Unleash so that it evaluates the current SHA against the SHA of any tag matching the current package.json name & version.