Declaring formal releases requires peer review.
- A reviewer of a pull request should recommend a new version number (patch, minor or major).
- Once your change is merged feel free to bump the version as recommended by the reviewer.
- A new version number should not be cut without peer review unless done by the project maintainer.
- Decide on the next
major.minor.patchrelease number based on semver guidelines - Create a pull request titled "Preparing release {version}"
- Update the version in package.json
- Add an entry to CHANGELOG.md
- Caption
{version} (yyyy-mm-dd) - List significant changes since the last release
- If there are breaking changes, point to documentation / upgrade instructions
- Caption
- Get the pull request approved and merged
- Create a release on Github
- Tag must be in the format
v{major}.{minor}.{patch}(note the requiredvprefix) - Title "Release {major}.{minor}.{patch}"
- Copy the list of changes from the change log to release description
- If there are breaking changes, point to documentation / upgrade instructions
- [optional] Add a thank you note to contributors
- Tag must be in the format
- Publish the new version to NPM
git checkout master && git pullgit log --abbrev-commit | head(expecting to see a tagged commit, e.g.commit 510cebd (tag: v3.5.3))make build-nodenpm publish(requires permissions)- Your
~/.npmrcfile should contain an entry//registry.npmjs.org/:_authToken={token} - Follow these instructions to create a token: https://docs.npmjs.com/getting-started/working_with_tokens
- Your
- Create a "Back to development" pull request
- Increment patch number in package.json with
devsuffix, e.g. if the last release was3.5.3then change it to3.5.4dev - Add a new entry to CHANGELOG.md
- Caption
{next_version} (unreleased) - In place of the list of changes, add one entry "- nothing yet"
- Caption
- Get this pull request merged asap
- Increment patch number in package.json with