Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kellnerd/deno-bump
Deno CLI to bump the version of the package in the current directory
https://github.com/kellnerd/deno-bump
bump-version deno
Last synced: about 1 month ago
JSON representation
Deno CLI to bump the version of the package in the current directory
- Host: GitHub
- URL: https://github.com/kellnerd/deno-bump
- Owner: kellnerd
- License: mit
- Created: 2024-11-29T16:54:34.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-11-29T17:41:59.000Z (about 1 month ago)
- Last Synced: 2024-11-29T18:20:23.299Z (about 1 month ago)
- Topics: bump-version, deno
- Language: TypeScript
- Homepage: https://jsr.io/@kellnerd/bump
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bump
Deno CLI to increment the semantic version of the package in the current directory.
Bumps the patch version, unless a version step (minor, major) is specified.
Try it out in a directory with a `deno.json` file, it will ask for the necessary permissions:
```sh
deno run jsr:@kellnerd/bump
```Optionally it can create a git commit with the package file changes and/or a tag.
See the integrated help to learn more:```sh
deno run jsr:@kellnerd/bump --help
```## Setup
Install the CLI with the permissions you need, for example:
```sh
deno install --global --allow-read=deno.json --allow-write=deno.json --allow-run=git jsr:@kellnerd/bump
```Now you can use it by simply executing `bump`.
## Usage Examples
Increment the minor version in `deno.json`:
```sh
bump minor
```Alternatively you can also increment the major version or the patch version.
Explicitly specify the JSON package file which should be updated:
```sh
bump --file jsr.json
```Automatically commit the changed `deno.json` file using a conventional commit message:
```sh
bump patch --commit "chore: Release version "
```Additionally create a tag with a version prefix:
```sh
bump major --commit "chore: Release version " --tag v
```If the previous version was `1.2.3`, the new version will be `2.0.0`.
A commit with the message `chore: Release version 2.0.0` will be created and tagged as `v2.0.0`.