Skip to content

A simple yet convenient bash script to create a semantic version tag and push it to the git remote.

License

Notifications You must be signed in to change notification settings

simbo/release-version-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Release Version Script

A simple yet convenient bash script to create a semantic version tag and push it to the git remote.

When calling for either a major, minor or patch update the script will find the latest version in your git tags, create a respective new version, set it as the tag for the current commit and push it to the remote.

If your project contains a package.json it will be automatically updated to the new version.

It should work with Mac, Linux and Windows (with WSL).

Usage

Run this command in your project's root directory to install the release script:

curl -o- https://raw.githubusercontent.com/simbo/release-version-script/latest/install.sh | bash

Afterward, you can run the ./release.sh command at any time to create and push a new tag with semantic versioning:

./release.sh UPDATE

Allowed values for UPDATE are major, minor or patch.

License and Author

MIT © Simon Lepel

About

A simple yet convenient bash script to create a semantic version tag and push it to the git remote.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages