Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

cesconix/bump-prerelease-version

Repository files navigation

⚠️ Archived Repository: This project is no longer maintained and is kept here for archival purposes only. Please note that the code may be outdated and no longer functional.

bump-prerelease-version

bump existing pre-release semver tag

build status npm version dependencies vulnerabilities javascript style guide conventional commits

CLI to create a pre-release semver git tag based on an existing one, incrementing it.

It arises from the need to automate tag generation during a CI/CD process, when support branches merged back into historical branches.

Quick Overview

Installation

npm install -g bump-prerelease-version

Usage

Usage: bump-prerelease-version [options]

Options:
  --prefix, -p  Prefix of the tag to look for                     [default: "v"]
  --semver, -v  Semver to look for prerelease identifier              [required]
  --help        Show help                                              [boolean]
  --version     Show version number                                    [boolean]

Example

$ bump-prerelease-version --prefix 'v' --semver '2.0.0'

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT. Copyright (C) 2019 Francesco Pasqua.