This document outlines the process for publishing new package versions and creating releases.
- Ensure you have npm account with appropriate permissions
- Have
pnpminstalled globally - Have access to the GitHub repository with write permissions
- Ensure you have 2FA enabled for npm (required for publishing)
-
ensure you are in
devbranch and upto date with dev (git pull origin dev). -
Figure out older version and what version you wanna release.
-
Run
pnpm tsx packages/tooling/scripts/set-version.ts --vv X.Y.Zto bump the version.
# alpha
pnpm tsx packages/tooling/scripts/set-version.ts --vv 2.0.0-alpha.11
# latest
pnpm tsx packages/tooling/scripts/set-version.ts --vv 2.1.0
-
Go to github (link will be in the terminal) and create a new release with the tag that was created in the previous step.
-
Run
pnpm publish-alpha --otp=123456orpublish-latestto publish the packages to npm.
# build all packages
pnpm -r build
# single concurrency - better output
pnpm -r run --workspace-concurrency=1 "build"