Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 oldrelease.yamlrecords one case: changesets/action v1 stopped reporting publishes. This PR moves protocol to verwalter, asclient-sdk-jsalready did. Both tags are made in one job before the publish, and the last job checks that the release is complete.Change
verwalter.tomllists the two packages as one fixed group:github.com/livekit/protocol: the Go module. Its version is ingo.modand the rootpackage.json. It is taggedv<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.yamlkeeps its name, because npm trusted publishing names the file. It runs when a release PR merges:builduses the same protoc as before, builds the JS package and loads both entry points.releasetags both packages and creates the GitHub release.publishpublishes the built package to npm and asks the Go proxy for the tag.verifyrunsstatus --check.release-pr.yamlkeeps one release PR open onrelease/main.changeset-check.yamlfails a PR that changes a package without a changeset. Theinternallabel skips that check.pre-release.yamlopens an rc PR on demand.generate.yamlno longer runs onrelease/**. The release branch is pushed with an App token, so without this filter,generate.yamlwould start there and could commit onto the release PR..changeset/config.json,@changesets/cli,@livekit/changesets-changelog-githuband thechangesetandci:publishscripts.pnpm-lock.yamlis updated with pnpm 12.17.0. The pending.changeset/*.mdfiles carry over unchanged.RELEASING.mddescribes the packages, the workflows and how to recover from a failed release.What contributors do differently:
mainon every push. Nobody pushes to it.github.token, so it started no workflows.Failure case
A publish fails after the tags exist. For example, npm is down.
verifygoes 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 packages1.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 openrelease: @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 isGET https://proxy.golang.org/github.com/livekit/protocol/@v/v1.54.2.info.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.yamlfilter and the artifact path frombuildtopublishare not proven by a run. The first release shows them.For maintainers
release.yamldoes not release it, and the versions are then ahead of the tags.go.modorpackage.jsonnow need a changeset or theinternallabel. Decide which, and setlabelsinrenovate.jsonif it is the label.workflow_dispatchonrelease.yamlcan be started by anyone with write access.Not done yet
🤖 Generated with Claude Code