This repository now uses Changesets for versioning, changelog generation, and npm publishing.
This repository uses npm Trusted Publishing for GitHub Actions.
Set up once on npm:
- Open the
react-tutorial-overlaypackage settings on npm. - Add a Trusted Publisher for the
sjsjsj1246/react-tutorial-overlayGitHub repository. - Set the workflow filename to
release.yml.
After that, the GitHub release workflow can publish without storing a long-lived NPM_TOKEN secret.
- Make your code change on a feature branch.
- Add a changeset before opening or updating the PR.
- Merge the PR into
main. - Let the Release workflow open or update the version PR.
- Merge the version PR to update
CHANGELOG.mdand package versions onmain. - Run the
Publishworkflow manually when you want to ship that version to npm.
Run:
pnpm changesetWhen prompted:
- Select
react-tutorial-overlay - Pick the appropriate bump type (
patch,minor, ormajor) - Write a short, user-facing summary
This creates a markdown file in .changeset/. Commit that file with the feature change.
Create a changeset:
pnpm changesetPreview versioning locally:
pnpm version-packagesRun the full release verification locally:
pnpm release:verifyPublish locally if you really need to:
pnpm releaseThe normal path should be the GitHub Release workflow instead of local publishing.
On pushes to main, .github/workflows/release.yml runs changesets/action.
- If unreleased changesets exist, it opens or updates a release PR.
- It does not publish to npm.
Run .github/workflows/publish.yml manually when you want to ship the current version on main.
pnpm releaseverifies tests, docs lint/build, size limits, and then runschangeset publish.- Publishing uses GitHub Actions OIDC via npm Trusted Publishing instead of an
NPM_TOKENsecret. - After npm publish succeeds, the workflow creates a
v<version>Git tag and a GitHub Release with generated release notes.
- Only the root
react-tutorial-overlaypackage is versioned and published. packages/documentandpackages/mainare ignored by Changesets.CHANGELOG.mdis updated bychangeset versionthrough the release PR flow.