Skip to content

ci(release): build only publishable npm workspace closures - #5284

Merged
liruifengv merged 1 commit into
perf/stable-cli-webfrom
perf/stable-npm-build
Nov 23, 2026
Merged

liruifengv merged 1 commit into
perf/stable-cli-webfrom
perf/stable-npm-build

Conversation

@liruifengv

Copy link
Copy Markdown
Collaborator

Requirement or Bug

Stacked on #5283. The stable npm publish job built every private application, including the Desktop installer frontend, even after the CLI npm bundle was ready.

Bug Reproduction Steps

Inspect the 2.7.2 npm build log: Desktop still builds after the CLI has finished.

Root Cause

The npm publisher called the repository-wide build intended for CI, rather than building its publishable workspaces.

Code Changes

Read pnpm's workspace metadata, select every non-private npm workspace, and build each with its transitive workspace dependencies in pnpm's normal order. This does not hardcode today's single public package or trust a possibly incomplete Changesets release plan. The install, release catalog, CLI prebuild (including its Web frontend), OIDC and actual Changesets publish stay as before. Push CI still builds the full repository.

Behavior Changes and Affected Users

Behavior Before After Affected Escape hatch
Stable npm preparation Built all apps Builds public workspace closures Release runners Revert this layer
Desktop, VS Code and documentation Built in npm job as well as in their own pipelines Unrelated private roots omitted from npm, independent pipelines unchanged Product release owners No change to product pipelines

Validated the workflow command against the actual workspaces and CLI bundle smoke. No npm publication or signed release dispatched.

Checklist

  • Read CONTRIBUTING; internal CI change.
  • Exercised the filtered build and existing CLI smoke.
  • Behavior table complete; no changeset or doc update needed.

@changeset-bot

changeset-bot Bot commented Nov 23, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 2cd2980

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T09:08:25.456551Z 2cd2980 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pkg-pr-new

pkg-pr-new Bot commented Nov 23, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@2cd2980
npx https://pkg.pr.new/@moonshot-ai/kimi-code@2cd2980

commit: 2cd2980

@liruifengv
liruifengv merged commit 70bac86 into perf/stable-cli-web Nov 23, 2026
10 of 21 checks passed
@liruifengv
liruifengv deleted the perf/stable-npm-build branch November 23, 2026 09:20
liruifengv added a commit that referenced this pull request Nov 23, 2026
…5283)

* ci(release): share the verified CLI web bundle across native targets

* ci(release): build only publishable npm workspace closures (#5284)
liruifengv added a commit that referenced this pull request Nov 23, 2026
…5282)

* ci(release): reuse the tested desktop renderer for stable installers

* ci(release): share the verified CLI web bundle across native targets (#5283)

* ci(release): share the verified CLI web bundle across native targets

* ci(release): build only publishable npm workspace closures (#5284)
liruifengv added a commit that referenced this pull request Nov 23, 2026
* ci(release): compress native downloads in parallel by platform

* ci(release): reuse the tested desktop renderer for stable installers (#5282)

* ci(release): reuse the tested desktop renderer for stable installers

* ci(release): share the verified CLI web bundle across native targets (#5283)

* ci(release): share the verified CLI web bundle across native targets

* ci(release): build only publishable npm workspace closures (#5284)
liruifengv added a commit that referenced this pull request Nov 23, 2026
* ci(release): build native binaries alongside npm publication

* ci(release): compress native downloads in parallel by platform (#5281)

* ci(release): compress native downloads in parallel by platform

* ci(release): reuse the tested desktop renderer for stable installers (#5282)

* ci(release): reuse the tested desktop renderer for stable installers

* ci(release): share the verified CLI web bundle across native targets (#5283)

* ci(release): share the verified CLI web bundle across native targets

* ci(release): build only publishable npm workspace closures (#5284)
liruifengv added a commit that referenced this pull request Nov 23, 2026
#5278)

* ci(release): skip the Electron PTY rebuild for standalone CLI installs

* test(release): handle PTY test registration explicitly

* ci(release): build native binaries alongside npm publication (#5280)

* ci(release): build native binaries alongside npm publication

* ci(release): compress native downloads in parallel by platform (#5281)

* ci(release): compress native downloads in parallel by platform

* ci(release): reuse the tested desktop renderer for stable installers (#5282)

* ci(release): reuse the tested desktop renderer for stable installers

* ci(release): share the verified CLI web bundle across native targets (#5283)

* ci(release): share the verified CLI web bundle across native targets

* ci(release): build only publishable npm workspace closures (#5284)
liruifengv added a commit that referenced this pull request Nov 24, 2026
* ci(release): avoid duplicate pnpm cache writes in joint releases

* test(release): mark cache fixture registration as intentional

* ci(release): skip the Electron PTY rebuild for standalone CLI installs (#5278)

* ci(release): skip the Electron PTY rebuild for standalone CLI installs

* test(release): handle PTY test registration explicitly

* ci(release): build native binaries alongside npm publication (#5280)

* ci(release): build native binaries alongside npm publication

* ci(release): compress native downloads in parallel by platform (#5281)

* ci(release): compress native downloads in parallel by platform

* ci(release): reuse the tested desktop renderer for stable installers (#5282)

* ci(release): reuse the tested desktop renderer for stable installers

* ci(release): share the verified CLI web bundle across native targets (#5283)

* ci(release): share the verified CLI web bundle across native targets

* ci(release): build only publishable npm workspace closures (#5284)

* fix(release): resume verified CLI native uploads on same-commit retries
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