Skip to content

Commit

Permalink
docs: update release workflow in CONTRIBUTING.md (#4238)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Dec 22, 2024
1 parent e46d3b8 commit 058993d
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,19 +208,13 @@ Dependencies installation-related metrics base on publishing process, so the dat

---

## Versioning

We use [changesets] to manage version. Currently, all Rsbuild packages will use a fixed unified version.

The release notes are automatically generated by [GitHub releases](https://github.com/web-infra-dev/rsbuild/releases).

## Releasing

Repository maintainers can publish a new version of all packages to npm.

Here are the steps to publish (we generally use CI for releases and avoid publishing npm packages locally):
Repository maintainers can publish a new version of changed packages to npm.

1. [Create release pull request](https://github.com/web-infra-dev/rsbuild/actions/workflows/release-pull-request.yml).
2. [Run the release action](https://github.com/web-infra-dev/rsbuild/actions/workflows/release.yml).
3. [Generate the release notes](https://github.com/web-infra-dev/rsbuild/releases).
4. Merge the release pull request.
1. Checkout a new release branch, for example `release_v1.2.0`
2. Run [changesets](https://github.com/changesets/changesets) to bump changed packages and commit the changes.
3. Create a pull request, the title should be `release: v1.2.0`.
4. Run the [release action](https://github.com/web-infra-dev/rsbuild/actions/workflows/release.yml) to publish packages to npm.
5. Generate the [release notes](https://github.com/web-infra-dev/rsbuild/releases) via GitHub, see [Automatically generated release notes](https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes)
6. Merge the release pull request to `main`.

0 comments on commit 058993d

Please sign in to comment.