npm-publish Bash function that bumps the package version according to semver pushes to git publishes on npm Installation $ source publish.sh Usage $ publish [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease]