Skip to content

Release with verwalter instead of changesets/action - #2017

Draft
lukasIO wants to merge 1 commit into
mainfrom
verwalter-migration
Draft

lukasIO wants to merge 1 commit into
mainfrom
verwalter-migration

Conversation

@lukasIO

@lukasIO lukasIO commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

This repository releases with changesets/action. The Go tag v<version> is a second step that runs only when changesets/action reports a publish. If that step fails, a re-run publishes nothing, the report stays false, and the Go module never gets the version that npm has. The comment in the old release.yaml records one case: changesets/action v1 stopped reporting publishes. This PR moves protocol to verwalter, as client-sdk-js already did. Both tags are made in one job before the publish, and the last job checks that the release is complete.

Change

  • verwalter.toml lists the two packages as one fixed group:
    • github.com/livekit/protocol: the Go module. Its version is in go.mod and the root package.json. It is tagged v<version> with no GitHub release, as before. The publish asks the Go proxy for the tag.
    • @livekit/protocol: tagged @livekit/protocol@<version> with a GitHub release, and published to npm.
  • release.yaml keeps its name, because npm trusted publishing names the file. It runs when a release PR merges:
    • build uses the same protoc as before, builds the JS package and loads both entry points.
    • release tags both packages and creates the GitHub release.
    • publish publishes the built package to npm and asks the Go proxy for the tag.
    • verify runs status --check.
  • release-pr.yaml keeps one release PR open on release/main. changeset-check.yaml fails a PR that changes a package without a changeset. The internal label skips that check. pre-release.yaml opens an rc PR on demand.
  • generate.yaml no longer runs on release/**. The release branch is pushed with an App token, so without this filter, generate.yaml would start there and could commit onto the release PR.
  • Removed: .changeset/config.json, @changesets/cli, @livekit/changesets-changelog-github and the changeset and ci:publish scripts. pnpm-lock.yaml is updated with pnpm 12.17.0. The pending .changeset/*.md files carry over unchanged.
  • RELEASING.md describes the packages, the workflows and how to recover from a failed release.
  • The workflows pin verwalter v0.31.0 by commit.

What contributors do differently:

  • The release PR is regenerated from main on every push. Nobody pushes to it.
  • The release PR runs CI. The old one was pushed with github.token, so it started no workflows.

Failure case

A publish fails after the tags exist. For example, npm is down. verify goes red. A re-run of the failed jobs asks each registry first and publishes only what is missing. In the old flow, the same failure left the Go tag missing until someone made it by hand.

Verified

verwalter 0.31.0 on this branch:

  • verwalter plan: both packages 1.54.2 -> 1.55.0 minor, from the 2 pending changesets. No warnings.
  • verwalter status --check: exit 0. @livekit/protocol 1.54.2 tag:both release:published registry:yes, github.com/livekit/protocol 1.54.2 tag:both release:not wanted registry:yes.
  • verwalter pr --dry-run: it would open release: @livekit/protocol 1.55.0, github.com/livekit/protocol 1.55.0.
  • verwalter publish --dry-run: npm skips 1.54.2, which it already has. The Go proxy request is GET https://proxy.golang.org/github.com/livekit/protocol/@v/v1.54.2.info.
  • History: of the last 200 runs of release.yaml, 2 failed and 4 were cancelled. Both failures were red in the changesets step, and nothing was published. The next push released. Every npm version since 1.30.0 has its Go tag.

The generate.yaml filter and the artifact path from build to publish are not proven by a run. The first release shows them.

For maintainers

  • Close the old "Version Packages" PR (Version Packages #2013) when this merges. If it merges after this PR, it bumps the versions, but release.yaml does not release it, and the versions are then ahead of the tags.
  • Renovate PRs that change go.mod or package.json now need a changeset or the internal label. Decide which, and set labels in renovate.json if it is the label.
  • If the changeset-bot App is installed, remove it.
  • workflow_dispatch on release.yaml can be started by anyone with write access.

Not done yet

  • The publish dry run on the release PR, after verwalter 0.32 is released.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lukasIO lukasIO self-assigned this Nov 24, 2026
@changeset-bot

changeset-bot Bot commented Nov 24, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 68bbc52

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

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