Skip to content

Automatically (or with prompts) bump your version numbers, commit, tag, and push to git

License

Notifications You must be signed in to change notification settings

octoblu/version-bump-prompt

 
 

Repository files navigation

Version-Bump-Prompt

Build Status Dependencies npm License

Screenshot

Automate your release process with a single command that can:

  • Bump the version number of JSON manifets, including:
    • package.json
    • bower.json
    • component.json
  • Replace version number strings in text files, including:
    • config files
    • source code
    • README files
    • license files
  • Commit changes to GIT
  • Tag the commit with the version number
  • Push the commit to remote
  • Optionally prompt for the type of version bump (major, minor, revision, beta, etc.)

Install

npm install -g version-bump-prompt

Usage

Usage: bump [options]

Options:

  -h, --help            output usage information
  -V, --version         output the version number
  --major               Increase major version
  --minor               Increase minor version
  --patch               Increase patch version
  --premajor            Increase major version, pre-release
  --preminor            Increase preminor version, pre-release
  --prepatch            Increase prepatch version, pre-release
  --prerelease          Increase prerelease version
  --prompt              Prompt for type of bump (patch, minor, major, premajor, prerelase, etc.)
  --preid <name>        The identifier for prerelease versions (default is "beta")
  --commit              Commit changed files to Git
  --tag                 Tag the commit in Git
  --push                Push the Git commit
  --all                 Commit/tag/push ALL pending files, not just the ones changed by bump
  --grep <filespec...>  Files and/or globs to do a text-replace of the old version number with the new one

Examples:

  $ bump --patch
  $ bump --major --tag
  $ bump --patch --tag --all --grep README.md LICENSE
  $ bump --prompt --tag --push --all

License

Version-Bump-Prompt is a fork of Version-Bump by Alexey Raspopov (c). Both the original project and this fork are licensed under the MIT License

About

Automatically (or with prompts) bump your version numbers, commit, tag, and push to git

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%