The full process for cutting a release is as follows:
-
Checkout a new branch:
git checkout -b v1.4-release
-
Run the bump script locally on that branch (the working directory must be clean):
npm run bump minor
-
Commit the changes, push up the branch, and open a PR:
git commit package.json package-lock.json
git push --set-upstream origin HEAD
hub pull-request
-
Once the PR is merged, checkout the
master
branch:git checkout master
-
Make a new Git tag that matches the new NPM version (make sure it is associated with the right commit SHA):
git tag -a v1.4 f34dcd3
-
Push up the tag from
master
:git push origin v1.4
-
Cut a release draft:
npm run release
-
Fill in the release details and publish it in GitHub.
To compare Git tag & NPM version, and bump the NPM version, run:
npm run bump <increment>
( where <increment>
= major
, minor
, or patch
)
To create a release draft from the command line, run:
npm run release
( you may need to setup hub
locally )