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.patch
release 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 requiredv
prefix) - 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 pull
git log --abbrev-commit | head
(expecting to see a tagged commit, e.g.commit 510cebd (tag: v3.5.3)
)make build-node
npm publish
(requires permissions)- Your
~/.npmrc
file 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
dev
suffix, e.g. if the last release was3.5.3
then 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
make build-node
to update the lock file- Get this pull request merged asap
- Increment patch number in package.json with