Skip to content

chrislaughlin/safe-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

safe-version

npm package

Safe version allows you to run the npm version command with out affecting your repo. It will:

  • Check a version was provided
  • Check for local changes that have not been committed
  • Check that the branch is in sync with origin

Then version your project.

Add the script to your npm process or run as a global script.

In your npm config add this script

npm bump: "safe-version"

Then run the following:

npm run bump -- --patch

Global

safe-version patch

About

Safely version a npm module

Resources

Stars

Watchers

Forks

Packages

No packages published