In this guide, we will cover all the steps needed to deploy a new version of Novu to NPM and the container registries.
- If applicable, merge the release branch to the main after all the tests have passed.
- Fetch the latest changes from GitHub on your machine locally
- Trigger production builds from the GitHub actions screen for the following in that order:
- Prod API Deploy
- Prod Web Deploy
- Prod WS Deploy
- Prod Embed Deploy
- Prod Widget Deploy
- Prod Notification Center Web Component Deploy (new one)
- After the deploy has finished we can begin with building and publishing packages
- Update the
docker-compose.yml
file with the new version tags in the images section - Create a release tag:
npm run release:patch
for patch version, replace with: minor, preminor depending on the version contents - After the version was updated on package.json files, run
pnpm install
to update lock files - Push changed code to git
git push --tags
Don’y forget to push the tags- Create a GitHub Release page with changes (click on autogenerate to see changes from last tag), select the tag of the current version in the release
- Publish to npm:
npm run publish
the OTP will be prompted - Run
Tag Docker Version
on Github actions manually with the version as a param: 0.7.0 (without the v)