From b11549ccca5c33b65612979996ff0b00fed9f3a9 Mon Sep 17 00:00:00 2001 From: lukasIO Date: Tue, 1 Dec 2026 13:52:27 +0100 Subject: [PATCH 1/2] Add RELEASING.md for the verwalter release flow Co-Authored-By: Claude Opus 5.5 --- RELEASING.md | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 RELEASING.md diff --git a/RELEASING.md b/RELEASING.md new file mode 100644 index 00000000..5681dfbd --- /dev/null +++ b/RELEASING.md @@ -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` | 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` 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 +``` + +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`. + +## Pre-release + +Run `gh workflow run pre-release.yml --ref `. The merge of the rc PR +tags `v-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 --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 `, 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. From 31320b862ce5e5b79ef142a93a40a0193e3c5779 Mon Sep 17 00:00:00 2001 From: lukasIO Date: Tue, 1 Dec 2026 14:17:00 +0100 Subject: [PATCH 2/2] Link RELEASING.md from AGENTS.md Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 1 + RELEASING.md.meta | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 RELEASING.md.meta diff --git a/AGENTS.md b/AGENTS.md index 389af897..e32380b1 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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. diff --git a/RELEASING.md.meta b/RELEASING.md.meta new file mode 100644 index 00000000..ea7f58c5 --- /dev/null +++ b/RELEASING.md.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 5c7f77a79d084a68a8e27adbfd6b102f +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: