- Execute the tests with
npm test
, fix if broken before proceeding. - Merge the patch or feature to master.
- Increase the version in
package.json
andpackage-lock.json
properly - Ensure
CHANGELOG.md
section exists for the new version, review it, and update release date. - In case the public API has some changes we need to release a new version of
camshaft-reference
too:- Go to
reference/
, increase package.json version, and runreference/tools/generate-reference
. - Ensure new reference version is generated and package.json is updated.
- Go to
- Commit
package.json
,package-lock.json
, andCHANGELOG.md
, and reference files (if relevant). - Tag the release
git tag -a Major.Minor.Patch
, use CHANGELOG section as tag body. - Push it to the remote repository and wait for CI to run tests.
- Go to the tag,
git checkout {{TAG}}
, and publish to the npm registry withnpm publish
. - If reference has changed, publish it to registry:
cd reference && npm publish && cd ..
. - Stub NEWS/package for next version.
Versions should follow http://semver.org/spec/v2.0.0.html.