Skip to content

chore: release with verwalter instead of changesets/action - #490

Open
lukasIO wants to merge 3 commits into
mainfrom
claude/verwalter-0e7f76
Open

lukasIO wants to merge 3 commits into
mainfrom
claude/verwalter-0e7f76

Conversation

@lukasIO

@lukasIO lukasIO commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Releases run through changesets/action, which is held at v1.9.0 because v2 needs Changesets v3. The other LiveKit JS SDKs, such as client-sdk-js, components-js and node-sdks, already release with verwalter. This PR moves this repository to the same flow. Versions, the tag format @livekit/react-native@<version> and CHANGELOG.md continue without a gap.

Warning

The API docs upload to S3 has failed in every release since 3.0.0. The release runs for 3.0.0, 3.1.0 and 3.1.1 ended red at the S3 Upload step with InvalidAccessKeyId. client-sdk-js uses the same secret names, and its docs upload passed on 2026-11-20. So this repository gets a different value for DOCS_DEPLOY_AWS_ACCESS_KEY. This PR stops committing docs/ and points the README at the S3 copy. Until an org admin fixes that secret, and the docs site serves docs.livekit.io/reference/client-sdk-react-native/, no current API docs are reachable. Fix both before this PR merges, or keep docs/ committed for now.

Change

  • verwalter.toml describes one npm package at the repository root. Its version is in package.json, and its tags use the existing format.
  • release-pr.yaml keeps one release PR release/main open while changesets are pending. Every push to main rebuilds that PR.
  • release.yaml runs when the release PR merges. A first gate job (verwalter gate) lets only a merged PR from verwalter-release[bot] with the verwalter marker, or a run by hand, continue. Then it builds, creates the tag and the GitHub release, publishes to npm with trusted publishing, uploads the API docs to S3, and checks the end state with verwalter status --check. The docs job runs only for a final version released from main.
  • changeset-check.yaml fails a PR that changes the package without a changeset. The internal label skips the check. On the release PR, it also runs npm publish --dry-run ([check].publish_dry_run), so a version that npm rejects does not reach main.
  • pre-release.yaml opens an rc PR by hand. The merge publishes under the npm dist-tag next.
  • Removed changeset.yaml, .changeset/config.json, @changesets/cli, @livekit/changesets-changelog-github, the ci:version and ci:publish scripts, and the changesets entry in .pinact.yaml. Pending .changeset/*.md files keep working.
  • docs/ is no longer committed. The old flow rebuilt it in each release PR. Now only the release workflow builds it and uploads it to S3. The README links to docs.livekit.io/reference/client-sdk-react-native/.
  • RELEASING.md describes the release steps and how to repair a failed release. CONTRIBUTING.md and AGENTS.md describe the new changeset flow.

The order of the steps is different from before. The old flow published to npm and then created the tag. The new flow creates the tag first and publishes after that. If the publish fails, the tag stays, and a re-run skips what npm already has.

Verified

  • The workflows pin verwalter 0.32.0-rc.1 (9da894a). It adds gate, the publish dry run, and a wait in publish until npm shows the version.
  • verwalter gate with sample events: yes for a merged PR from verwalter-release[bot] with the marker, and for workflow_dispatch. No for another author, and for a body without the marker.
  • npm publish --dry-run with the version set to an unpublished 3.2.1: passes, with the prepare build. With 3.2.0 it fails, because npm has that version.
  • verwalter plan: 1 package, 0 pending changesets.
  • verwalter status: @livekit/react-native 3.2.0 tag:both release:published registry:yes, up to date.
  • verwalter pr --dry-run: nothing to release.
  • yarn lint (0 errors) and yarn typescript pass.
  • yarn build-docs writes to docs/, and git ignores the output.
  • actionlint reports one finding: queue: max in the concurrency of the publish job is an unknown key. client-sdk-js uses the same key in its release workflow.

For reviewers

Before the first release, a maintainer must do these steps:

  • Fix the DOCS_DEPLOY_AWS_ACCESS_KEY value that this repository gets. See the warning at the top.
  • On npm, change the trusted publisher of @livekit/react-native from changeset.yaml to release.yaml. If you do not, the first publish fails.
  • Create the internal label, and add it to this PR. This PR needs no changeset.
  • Give the verwalter-release GitHub App access to this repository. The org secrets VERWALTER_RELEASE_CLIENT_ID and VERWALTER_RELEASE_APP_KEY are already there.
  • Remove the changeset-bot GitHub App from this repository. changeset-check.yaml does its job now.
  • Ask the docs site team to serve the S3 upload at docs.livekit.io/reference/client-sdk-react-native/. Today that URL redirects to the React Native platform page.

Not done yet

  • The release workflows have not run yet. The first real run is the first release PR after this merge.
  • The release/** maintenance branches, such as release/2.10, are not migrated. A maintenance branch needs its own verwalter.toml with base_branch.
  • An API check with [check].api and break-check is left for a follow-up.
  • The podspec sets :tag => "#{s.version}", which points to a tag such as 3.2.0 that does not exist. This PR does not change it.

🤖 Generated with Claude Code

Add verwalter.toml and the verwalter workflows (release-pr, release,
changeset-check, pre-release). Remove the changesets config, workflow,
devDependencies and scripts. Stop committing the generated docs/: the
release workflow builds and uploads them to S3.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@lukasIO lukasIO self-assigned this Nov 23, 2026
@changeset-bot

changeset-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: bdb226a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

lukasIO and others added 2 commits November 23, 2026 11:16
A repair run finds the version on npm, so publish reports `exists` and
the package is not in `published`. The docs job then skipped and the run
ended green with no upload. Run it for `published` or `exists`, and read
the version field instead of searching the outcomes string for `-rc.`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- release.yaml: a `gate` job decides which runs release, in place of the
  long `if:` on the build job.
- `[check].publish_dry_run = true`: the release PR runs
  `npm publish --dry-run`, so a version that npm rejects does not reach
  main. The check job installs the workspace on the release PR only,
  because the dry run runs the `prepare` script.
- `publish` now waits until npm shows the version, five minutes by
  default.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@lukasIO
lukasIO marked this pull request as ready for review November 23, 2026 11:44

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

3 flags not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)

Devin Review

Comment thread README.md
```

[API documentation is located here.](https://htmlpreview.github.io/?https://raw.githubusercontent.com/livekit/client-sdk-react-native/main/docs/modules.html)
[API documentation is located here.](https://docs.livekit.io/reference/client-sdk-react-native/)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 Broken API reference links

The README’s new API reference URL redirects to the React Native platform guide. Its React Native SDK reference card still points to the generated pages this PR deletes.

Learn more

The README now points to a route that redirects to the React Native platform guide. The guide’s React Native SDK reference card still loads modules.html from main through HTML Preview. The PR removes the entire generated reference from main. The docs upload job only runs after a stable release and does not change how the docs site routes requests.

Example: After this PR merges, a developer looking up AudioSession follows the README link and then the guide’s SDK reference card. The second link requests a file that no longer exists on main.

Recommended fix: Keep the generated reference and its existing link until the replacement route serves a verified upload and the platform guide links directly to it. Then remove the tracked output.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant