packages/@repo/release-notes/README.md
Internal tool for generating Sanity Studio release notes and changelog documents. It collects commits since the previous semver tag, associates them with merged GitHub PRs, extracts the "Notes for release" section from PR descriptions, and writes the results to the configured Sanity dataset.
Run from the repo root with the package binary:
pnpm release-notes generate-changelog \
--baseVersion 5.7.0 \
--tentativeVersion 5.7.1 \
--outputFormat pr-description
Arguments:
--baseVersion (required): previous released version, used to select commits.--tentativeVersion (required): upcoming version string.--outputFormat (optional): set to pr-description to print a PR-ready summary.Required:
RELEASE_NOTES_SANITY_PROJECT_IDRELEASE_NOTES_SANITY_DATASETRELEASE_NOTES_SANITY_TOKENRELEASE_NOTES_ADMIN_STUDIO_URLGITHUB_TOKENThe command creates or updates:
When --outputFormat pr-description is provided, it prints a Markdown summary with a link to edit the draft
changelog in the admin studio.
pnpm --filter @repo/release-notes lint
pnpm --filter @repo/release-notes test
pnpm --filter @repo/release-notes check:types