Follow these steps to release new packages from your monorepo:
Begin by creating a new branch. Base it on the latest main branch.
Evaluate changes and adhere to Semantic Versioning (semver). Run the relevant command for major
, minor
or patch
changes.
$ pnpm version:bump patch
Now the versions are bumped, but packages that depend on each other are still referencing the old version. Run this command to update all the references across the monorepo.
$ pnpm relink:deps
Commit the changes. Create a pull request targeting the main branch.
Await PR approval, then merge it into main to integrate new versions.
After merging, trigger the "Publish to NPM" workflow in the Actions tab.
Monitor the workflow progress in GitHub Actions. Confirm successful publication in the npm registry.
You're done!