Releasing
Releases use Changesets and publish @bhodgson/design-system to npm with trusted publishing: npm trusts .github/workflows/release.yml, so no npm token is stored anywhere, and each version gets a provenance statement linking it to the commit that built it.
- In a pull request that changes the published package, run
pnpm changeset, choose major, minor or patch, and describe the change. Commit the file it creates. For changes that don’t affect the package, such as tests or CI, usepnpm changeset --empty. CI fails if a package change has no changeset. - When changesets reach
main, the release workflow opens a “chore(release): version packages” pull request that bumpsversion, updatesCHANGELOG.mdand removes the changesets. GitHub doesn’t run CI on pull requests the workflow opens, so close and reopen it to start the required checks. - Merging it publishes to npm, tags the release and creates a GitHub release.
design-system is a Ben Hodgson projectGitHub