Skip to content

ci: keep npm's latest on the newest release when publishing from release/0.34 (backport #3479) - #3510

Merged
ben-reitz merged 1 commit into
release/0.34from
ci/backport-3479-release-0.34
Nov 30, 2026
Merged

ben-reitz merged 1 commit into
release/0.34from
ci/backport-3479-release-0.34

Conversation

@ben-reitz

@ben-reitz ben-reitz commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Backport of #3479 to release/0.34. A release runs the workflow on the branch it publishes from, so until this lands, a 0.34.x patch published after 0.35.0 would take npm's latest back to 0.34.

Summary

Cherry-pick of 5876f38 (git cherry-pick -x), applied cleanly. .github/changeset-publish.ts and .github/workflows/release.yml are now identical to main.

publish from release/<line>
  every package to publish newer than its npm latest → changeset publish        (keeps latest)
  otherwise                                          → changeset publish --tag release-<line>
release runs for main and release/** share one queued concurrency group

Evidence

Dry run of .github/changeset-publish.ts on this branch, with changeset publish replaced by a log line:

Ref agents version Runs
release/0.34 0.34.2 (newer than latest 0.34.1) changeset publish
release/0.34 0.33.9 (older than latest) changeset publish --tag release-0.34
main 0.33.9 changeset publish

oxfmt, oxlint and strict tsc of .github/changeset-publish.ts pass.

Merge Danger

Door: two-way

Blast Radius: releases

Only affects publishing from release/0.34. No changeset needed.


Devin Review

…lease branch (#3479)

* ci: keep npm's latest on the newest release when publishing from a release branch

From the #3223 review. Changesets tags every publish latest, so a maintenance release from release/<line> after a newer release would move latest back to the older line. It now keeps latest only when every package it publishes is newer than that package's latest, and otherwise publishes under release-<line>. The Release workflow's concurrency group is also per branch now: a single group let a push to main replace a maintenance release still waiting to run.

* ci: check every workspace package and queue release runs in one group

From the Devin review of #3479. The tag check read only packages/*, but Changesets also publishes voice-providers/*; it now lists the pnpm workspace. And per-branch groups let main publish between a maintenance run's latest check and its publish, so the Release workflow is back to one group, with queue: max so a push to main waits instead of replacing a pending maintenance run.

(cherry picked from commit 5876f38)
@changeset-bot

changeset-bot Bot commented Nov 30, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: de8a8ae

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.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

@ben-reitz
ben-reitz merged commit bd3145e into release/0.34 Nov 30, 2026
13 of 14 checks passed
@ben-reitz
ben-reitz deleted the ci/backport-3479-release-0.34 branch November 30, 2026 10:41

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

Copy link
Copy Markdown
Contributor

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.

Devin Review

Comment on lines +29 to +37
for (const { name, version, private: isPrivate } of workspacePackages()) {
if (isPrivate) continue;
const published = npmView(`${name}@${version}`, "version");
// Already on npm, so Changesets skips it.
if (published === version) continue;
const latest = npmView(name, "dist-tags.latest");
if (latest !== undefined && !isNewer(version, latest)) {
console.log(`${name}@${version} is not newer than latest ${latest}.`);
return fallback;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔍 Companion package coverage gap

The documented dry runs would pass even if maintenancePublishTag checked only agents. Add a regression case where agents is newer but @cloudflare/ai-chat requires the maintenance tag.

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant