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
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ Key internal files:

### Releases
[verwalter](https://github.com/livekit/verwalter) releases the package. Every PR that changes the package adds a changeset file in `.changeset/` (`verwalter changeset --level patch|minor|major`), or carries the `internal` label. Each push to `main` updates one release PR. Merging it bumps `package.json`, writes `CHANGELOG.md`, tags `vX.Y.Z` and creates the GitHub release. Never edit the version by hand.
The release steps, the FFI update before a release and the recovery commands are in [`RELEASING.md`](RELEASING.md).

### Rust Submodule
`client-sdk-rust~/` is a git submodule pointing to the shared Rust SDK. The `~` suffix tells Unity to ignore the directory.
Expand Down
71 changes: 71 additions & 0 deletions RELEASING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Releasing client-sdk-unity

This repository releases with [verwalter](https://github.com/livekit/verwalter).
The commands that are the same in every repository are in the
[verwalter cheat sheet](https://github.com/livekit/verwalter/blob/main/docs/cheat-sheet.md).
This file holds what is specific to this repository.

## Packages

| Package | Tag | Goes to |
|---|---|---|
| `io.livekit.livekit-sdk` | `v<version>` | A GitHub release with no assets |

Users install the package from its git URL and tag. The tag is the whole
release: there is no build job and no registry.

The version is in `package.json` and in the install instructions of
`README.md`. The release PR moves both. Never edit the version by hand.

## Workflows

| File | Starts when | Does |
|---|---|---|
| `changeset-check.yml` | A PR is opened or updated | Fails a PR that changes the package without a changeset. The `internal` label skips the check. |
| `release-pr.yml` | A push to `main` | Keeps the release PR `release/main` current. |
| `release.yml` | The release PR merges | Tags `v<version>` and creates the GitHub release. |
| `pre-release.yml` | Run by hand | Opens an rc PR from the branch it runs on. |
| `docs.yml` | A push to `main` | Builds the API docs and deploys them to GitHub Pages. This is not part of a release. |

## Before a release

To ship a new FFI version, update it in a normal PR before the release:

```bash
python Scripts~/update_ffi.py <ffi_version>
```

The script updates `version.ini`, the prebuilt binaries, the submodule
`client-sdk-rust~` and the generated protobuf code. It does not touch the SDK
version. Add a changeset to that PR. You need the
[git lfs](https://git-lfs.com/) extension.

## Release

1. Merge the release PR.
2. Watch the run of `release.yml`: `gh run list --workflow release.yml --limit 1`.

A complete release has a public GitHub release on the tag `v<version>`.

## Pre-release

Run `gh workflow run pre-release.yml --ref <branch>`. The merge of the rc PR
tags `v<version>-rc.1`. The changesets stay pending for the final release.

## A release failed

Find the cause first. The paths by cause are in the
[recovery section](https://github.com/livekit/verwalter/blob/main/docs/release-workflows.md#recovery).

| Situation | Command |
|---|---|
| A job failed for a transient reason | `gh run rerun <run-id> --failed` |
| The workflow file needed a fix, and the fix is on `main` | `gh workflow run release.yml` |
| The released commit is wrong | `verwalter release --abandon <tag>`, then a changeset and the next version |

A run by hand of `release.yml` continues from the current state. It skips
the tag and the release that exist.

## Who to ask

The LiveKit client team.
7 changes: 7 additions & 0 deletions RELEASING.md.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading