Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Changelog

This repository uses [Changesets](https://github.com/changesets/changesets) for release notes and versioning.

Package changelogs are maintained automatically during `pnpm version-packages` and by the release workflow in [`./.github/workflows/release.yml`](./.github/workflows/release.yml).

- [`@react-protected/core`](./packages/core/CHANGELOG.md)
- [`@react-protected/react`](./packages/react/CHANGELOG.md)
- [`@react-protected/react-router`](./packages/react-router/CHANGELOG.md)
8 changes: 8 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ pnpm changeset

Commit the generated file from `.changeset/` with your PR.

When maintainers run:

```bash
pnpm version-packages
```

Changesets bumps package versions and updates the package changelogs in `packages/*/CHANGELOG.md`. The same command is executed by the release workflow on `main`.

## Pull Requests

- Keep PRs focused and easy to review.
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,16 @@ If you want to contribute:
- run `pnpm changeset` when your PR changes a published package
- run `pnpm lint`, `pnpm typecheck` and `pnpm test` before submitting changes

## Changelog And Releases

Releases are managed with Changesets.

- add a changeset with `pnpm changeset` whenever a PR changes a published package
- `pnpm version-packages` generates or updates `packages/*/CHANGELOG.md` and bumps package versions
- pushing to `main` triggers [`.github/workflows/release.yml`](./.github/workflows/release.yml), which opens the release PR and publishes to npm

The repository-level overview lives in [CHANGELOG.md](./CHANGELOG.md).

See [CONTRIBUTING.md](./CONTRIBUTING.md) for the full workflow.

## License
Expand Down
3 changes: 2 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
}
},
"files": [
"dist"
"dist",
"CHANGELOG.md"
],
"scripts": {
"build": "vite build",
Expand Down
3 changes: 2 additions & 1 deletion packages/react-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
}
},
"files": [
"dist"
"dist",
"CHANGELOG.md"
],
"scripts": {
"build": "vite build",
Expand Down
3 changes: 2 additions & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
}
},
"files": [
"dist"
"dist",
"CHANGELOG.md"
],
"scripts": {
"build": "vite build",
Expand Down
Loading