This script automates the process of incrementing the version in your package.json
file, committing the change, creating a Git tag, and pushing both the commit and tags to your remote repository. It's ideal for Node.js projects where consistent versioning and tagging are crucial.
- Automatic Version Increment: Increments the patch version in
package.json
. - Git Commit and Tag: Commits the updated
package.json
and creates a corresponding Git tag. - Push to Remote: Pushes the commit and tags to the remote Git repository.
-
Place the script in your project's root directory.
-
Run the script using Node.js:
npm i auto-version-gitflow --save-dev auto-version-gitflow ./package.json