A simple semantic versioning tool for Deno; a lightweight replacement for `npm version`
Repository
Current version released
4 years ago
Dependencies
deno.land/x
version
A lightweight replacement for npm version
;
- Creates and manages a file called
VERSION
(storing the current version) - Shells out to
git
to create commits and tags for version bumps
— the rest is up to you.
Usage
# Create a `VERSION` file
$ deno run -A init
# Increment a version
$ deno run -A https://deno.land/x/version/index.ts patch
$ deno run -A https://deno.land/x/version/index.ts minor
$ deno run -A https://deno.land/x/version/index.ts major
# Explicitly set a specific version
$ deno run -A https://deno.land/x/version/index.ts set 1.2.3
(nb: -A
given for brevity; version
needs --allow-read
and
--allow-write
for managing the VERSION
file and --allow-run
for Git
actions)
License
MIT