https://github.com/wesleimp/bump-version
Bump a given semantic version, following a given version fragment.
https://github.com/wesleimp/bump-version
golang semantic-version
Last synced: 2 months ago
JSON representation
Bump a given semantic version, following a given version fragment.
- Host: GitHub
- URL: https://github.com/wesleimp/bump-version
- Owner: wesleimp
- License: mit
- Created: 2022-02-02T22:00:50.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-03T14:18:51.000Z (about 3 years ago)
- Last Synced: 2024-06-20T01:54:30.082Z (10 months ago)
- Topics: golang, semantic-version
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bump-version
Bump a given semantic version, following a given version fragment.
## Install
### manually
Download the pre-compiled binaries from the [OSS releases page](https://github.com/wesleimp/bump-version/releases) and copy them to the desired location.
### compiling from source
If you just want to build from source, follow these steps:
**clone**
```sh
git clone https://github.com/wesleimp/bump-version
cd bump-version
```**dependencies**
```sh
go mod tidy
```For the next steps, you can just run `make install` to build binaries directly inside `/usr/local/bin/` folder. Or just follow the steps below:
**build**
```sh
make build
```**verify it works**
```sh
./bin/bump-version -v
```## Usage
```sh
bump-version [options...]
```The available options for the `fragment` flag are `[major | feature | bug | alpha | beta | rc]`. See some examples:
| fragment | version | output |
| ---------------- | --------------- | ------------- |
| major | 2.11.7 | 3.0.0 |
| major | 2.11.7-alpha3 | 3.0.0 |
| feature | 2.11.7 | 2.12.0 |
| feature | 2.11.7-alpha3 | 2.12.0 |
| bug | 2.11.7 | 2.11.8 |
| bug | 2.11.7-alpha3 | 2.11.8 |
| alpha | 2.11.7 | 2.11.7-alpha1 |
| alpha | 2.11.7-alpha3 | 2.11.7-alpha4 |
| beta | 2.11.7 | 2.11.7-beta1 |
| beta | 2.11.7-alpha3 | 2.11.7-beta1 |
| rc | 2.11.7 | 2.11.7-rc1 |
| rc | 2.11.7-alpha3 | 2.11.7-rc1 |## LICENSE
[MIT](./LICENSE)