Skip to content
Open
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
66 changes: 13 additions & 53 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -1,66 +1,26 @@
# Changesets

Add a changeset to any PR that should be released. Create a markdown file in
this directory (any name, e.g. `fix-token-parsing.md`):
Add a changeset to any PR that changes a published package. Create a markdown
file in this directory (any name, for example `fix-token-parsing.md`), or run
`verwalter changeset`:

```md
---
"livekit-api": patch
---

Short description of the change, used in the release notes.
Short description of the change, for the user of the package.
```

List one line per package the change should release:
- **Packages:** `livekit` (the code in `livekit-rtc/`), `livekit-api`, `livekit-protocol`. One line per package.
- **Levels:** `patch` for a fix, `minor` for an addition, `major` for a break.

- **Packages:** `livekit-rtc`, `livekit-api`, `livekit-protocol`
- **Types:**
Do not add the PR number: the release adds it. When several pending changesets
name the same package, the largest level wins. A change to `livekit-protocol`
also releases `livekit-api` as a patch, with no changeset for it.

| Type | Example |
|---|---|
| `patch` | 1.5.1 → 1.5.2 |
| `minor` | 1.5.1 → 1.6.0 |
| `major` | 1.5.1 → 2.0.0 |
| `patch-rc` | 1.5.1 → 1.5.2.rc1 |
| `minor-rc` | 1.5.1 → 1.6.0.rc1 |
| `major-rc` | 1.5.1 → 2.0.0.rc1 |
| `next-rc` | 1.6.0.rc1 → 1.6.0.rc2 |
| `promote` | 1.6.0.rc2 → 1.6.0 |
A PR that needs no release (docs, CI, tests) gets the `internal` label.

When several pending changesets touch the same package, the largest bump wins.
Mixing stable and rc types for one package, or combining `promote` with
anything else, is rejected. Only rc types are allowed on branches other than
`main`.

While a package is at an rc (e.g. `1.6.0.rc1`), only `next-rc` and `promote`
are accepted for it, so fixes land in the next rc and the planned `1.6.0` still
ships. Any other type would skip it (`patch` would release `1.6.1`). To move
to a different version line, use the Manual Version Bump workflow below.

## How releases happen

1. Every PR is checked by the **Changeset** workflow; invalid changesets fail
the check.
2. On each push to `main`, **Package Release** applies all pending changesets
and opens (or updates) the `Release: ...` PR with the version bumps and
release notes, then deletes the changesets it used. Changesets used by an
rc release are kept instead (and recorded in `.changeset/pre.json`) until
that package's next stable release, normally `promote`, whose release notes
then list every change since the last stable version.
3. Merging that release PR tags each bumped package, publishes it to PyPI and
creates its GitHub Release.

Changes that don't need a release (docs, CI, tests) don't need a changeset.

## Manual version bump

As a fallback, run the **Manual Version Bump** workflow with a package and
bump type. It opens a `release/<prefix>-v<version>` PR without reading any
changeset; merging it publishes the same way as a changeset release PR.
It doesn't touch `.changeset/`, so changesets kept from rc releases stay until
that package's next changeset stable release.

The two flows don't know about each other: a manual bump doesn't close an open
`Release: ...` changeset PR for the same package (or the other way round), and
both change that package's version, so once one merges the other conflicts.
Close the stale one before merging.
Pre-releases (`1.6.0rc1`) are not a changeset level: run the Pre-release PR
workflow. For a major rc of `livekit-protocol`, also add a `patch` changeset for
`livekit-api`. <!-- TODO(livekit/verwalter#137): drop this once an rc includes its dependents. --> See [RELEASING.md](../RELEASING.md).
294 changes: 0 additions & 294 deletions .github/changesets.py

This file was deleted.

Loading
Loading