Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Clarify the release strategy #16012

Merged
merged 1 commit into from
Dec 27, 2024
Merged
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
14 changes: 11 additions & 3 deletions scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,21 @@ In case of a problem, another method to generate the changelog is available at t

2. Clean the generated changelog, to match the format of [https://github.com/mui/mui-x/releases](https://github.com/mui/mui-x/releases).
3. Update the root `package.json`'s version
4. Update the versions of the other `package.json` files and of the dependencies with `pnpm release:version` (`pnpm release:version prerelease` for alpha / beta releases).
Do not skip the version bump if Lerna detects a change in the package. It is important to release the package if there are **any** changes to it.
If Lerna doesn't suggest a version bump for the package, don't release it.
4. Update the versions of the other `package.json` files and of the dependencies with `pnpm release:version` (`pnpm release:version prerelease` for alpha / beta releases). [Check the warning below]
5. Open PR with changes and wait for review and green CI.
6. Once CI is green and you have enough approvals, send a message on the `team-x` slack channel announcing a merge freeze.
7. Merge PR.

:::warning

Make sure of the following when versioning the packages with `release:version`:

- Do not skip the version bump if Lerna detects a change in the package. It is important to release the package if there are **any** changes to it.
- If Lerna doesn't suggest a version bump for the package, don't release it.
- When releasing a package, make sure to sync the version of the package with the version of the root `package.json` file.

:::

### Release the packages

1. Checkout the last version of the working branch
Expand Down
Loading