0.6.1 • Published 7 years ago
@aleclarson/release v0.6.1
release v0.6.1
Easy semver releases.
How it works
- stash changes and untracked files (you must use the
-sflag) - if the
filesarray exists inpackage.json:- delete any paths not in that array
- delete any paths matching the
-xglobs - update the package version
- ensure the
latestbranch exists - reset the
latestbranch tomaster - run these scripts in order:
build,prepublish,prepare,prepublishOnly
- commit changes with a message like
1.0.0 - create a semver tag like
1.0.0 - force push to
origin/latest - end on
masterbranch
CLI
release 0.0.1 # specify exact version
release -p # bump the patch version
release -m # bump the minor version, set patch to 0
release -M # bump the major version, set patch/minor to 0
release -R # rebase the current versionFlags
-p --patchset release type to "patch"-m --minorset release type to "minor"-M --majorset release type to "major"-P --preprepend "pre" when used with-p,-m, or-M; otherwise, set release type to "prerelease"-R --rebaseupdate the current version (useful after a rebase)-s --stashstash changes and untracked files-x --excludeglobs excluded from thelatestbranch--drysee what happens without doing it