Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/perbu/bump
Version mgmt tool
https://github.com/perbu/bump
Last synced: 28 days ago
JSON representation
Version mgmt tool
- Host: GitHub
- URL: https://github.com/perbu/bump
- Owner: perbu
- License: bsd-3-clause
- Created: 2024-11-10T07:22:46.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-07T08:02:29.000Z (about 1 month ago)
- Last Synced: 2024-12-07T08:18:41.729Z (about 1 month ago)
- Language: Go
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# bump
A simple tool to bump version numbers in git. Written as replacement for standard-version, which is deprecated.
## Installation
```sh
go install github.com/perbu/bump@latest
```## What it does
bump starts out by reading all the tags from git. It will discard everything that doesn't look like a version
number (v1.2.3, 1.2.3, 1.2.3-alpha.1, etc). It will then sort the versions and pick the highest one. If there are no
tags, it will fail.It will then increment ("bump") the version number according to the command line arguments. If no arguments are given
it will default to bumping the patch version.It will then look for files name `.version`. If any such files are found in the repository their content will be
replaced with the new version number.These files will then be added to git and committed with a message that includes the new version number. bump will try
to access the ssh-agent to sign the commit.Finally, it will create a new tag in git with the bumped version number.