Use this checklist to create a new release of circles-analysis
and publish the NodeJS application to the public npm registry. All steps are intended to be run from the root directory of the repository.
- Make sure you are currently on the
main
branch, otherwise rungit checkout main
. git pull
to make sure you haven’t missed any last-minute commits. After this point, nothing else is making it into this version.npm test
to ensure that all tests pass locally.git push
and verify all tests pass on all CI services.- Read the git history since the last release, for example via
git --no-pager log --oneline --no-decorate v0.4.0^..origin/main
(replacev0.4.0
with the last published version). - Condense the list of changes into something user-readable and write it into the
CHANGELOG.md
file with the release date and version, following the specification here on how to write a changelog. Make sure you add references to the regarding PRs and issues. - Commit the
CHANGELOG.md
changes you've just made. - Create a git and npm tag based on semantic versioning using
npm version [major | minor | patch]
. git push origin main --tags
to push the tag to GitHub.git push origin main
to push the automaticpackage.json
change after creating the tag.- Create a new release on GitHub, select the tag you've just pushed under "Tag version" and use the same for the "Release title". For "Describe this release" copy the same information you've entered in
CHANGELOG.md
for this release. See examples here.
- Make sure you have an authenticated npm account with permission to deploy the
@circles/analysis
package. - Run
npm publish
to finally release the package on npm.