Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 1.11 KB

File metadata and controls

41 lines (25 loc) · 1.11 KB

Package Publishing & Release Guide

This document outlines the process for publishing new package versions and creating releases.

Prerequisites

  • Ensure you have npm account with appropriate permissions
  • Have pnpm installed globally
  • Have access to the GitHub repository with write permissions
  • Ensure you have 2FA enabled for npm (required for publishing)
  1. ensure you are in dev branch and upto date with dev (git pull origin dev).

  2. Figure out older version and what version you wanna release.

  3. Run pnpm tsx packages/tooling/scripts/set-version.ts --vv X.Y.Z to 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
  1. Go to github (link will be in the terminal) and create a new release with the tag that was created in the previous step.

  2. Run pnpm publish-alpha --otp=123456 or publish-latest to publish the packages to npm.

PNPM Commands

# build all packages
pnpm -r build

# single concurrency - better output
pnpm -r  run --workspace-concurrency=1 "build"