Skip to content

Checks if version in local package.json is higher than in npm

License

Notifications You must be signed in to change notification settings

amio-io/npm-version-bump-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm-version-bump-checker

Checks if version in local package.json is higher than in npm

Description

This utility will throw an error when local version <= remote version

You can pair this tool with CI/CD tools to ensure your package.json version is properly increased before being merged to master.

Installation

npm install npm-version-bump-checker --save-dev

Usage

Add the proper npm script for your NodeJS platform to the scripts key in package.json:

"can-publish-nix": "npm info $npm_package_name version | npm-version-bump-checker"
"can-publish-win": "npm info %npm_package_name% version | npm-version-bump-checker"

About

Checks if version in local package.json is higher than in npm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published