bump-version

command
v0.1.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

bump-version reads a file and looks for this pattern: const VERSION = "a.b.c" (on a line by itself) where "a", "b", and "c" are numbers. (The file can use single or double quotes.)

It then increments either the major (a), minor (b), or patch (c) numbers based on the supplied argument. It rewrites the file with the new version, commits the change with "git commit" (with -commit) and tags it with "git tag" (with -tag).

Usage:

go run cmd/bump-version/main.go [-n] patch src/main.js

The `-n` flag parses the file but makes no changes or git actions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL