release-npm-trustme
Overview
Run scripts/release.ts to bump the version, build, tag, and push a release for npm-trustme.
Workflow
- •Open the repo:
cd ~/projects/npm-trustme - •Ensure the working tree is clean (the script will refuse to run otherwise).
- •Pick the version bump:
patch|minor|majoror a specific semver. - •Run:
pnpm tsx scripts/release.ts <bump> - •The script builds, commits, tags, pushes, and (if
ghis installed) creates/updates a GitHub Release.
Examples
code
pnpm tsx scripts/release.ts patch pnpm tsx scripts/release.ts minor pnpm tsx scripts/release.ts 0.2.0
Notes
- •The script pushes to the current branch and tags; confirm the branch before running.
- •Release notes use
CHANGELOG.mdif present. SetGH_NOTES_REFto override the changelog section.