Skip to content

feat(release): add react to stable orchestrator#3221

Merged
caio-pizzol merged 1 commit into
mainfrom
release-orchestrator-pr3-react
May 11, 2026
Merged

feat(release): add react to stable orchestrator#3221
caio-pizzol merged 1 commit into
mainfrom
release-orchestrator-pr3-react

Conversation

@caio-pizzol
Copy link
Copy Markdown
Contributor

Adds react to the core chain after superdoc. react consumes `superdoc` in dependencies, so releasing them in order through the orchestrator means consumers never see a react release that pins to an older superdoc than what just shipped.

  • `resumeReactPublish` adapter uses the generic `npm-publish-package.cjs` helper; idempotent against npm via dist-tag updates.
  • React descriptor joins the `core` chain. A superdoc failure now skips react (fail-closed within chain); a tools failure still does not.
  • `release-react.yml` stops auto-firing on stable; main pushes still publish prereleases.

Stacked logically on the orchestrator series (#3201, #3204); both merged so this PR targets `main` directly.

Must stay the same: chain-independent semantics between tools and core (tools failure does not skip core, and vice versa); npm-verified docs promotion in promote-stable-docs.yml.

Verified: `node --test scripts/tests/release-local.test.mjs` → 23 pass, 2 fail (pre-existing on main, unrelated).

@caio-pizzol caio-pizzol requested a review from a team as a code owner May 11, 2026 13:34
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a03f2cf178

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +690 to +693
runInWorkspace(workspaceRoot, 'node', [
join(workspaceRoot, 'scripts/npm-publish-package.cjs'),
'--package-dir',
'packages/react',
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Build React before publishing recovered snapshots

When recovery runs from an older tagged snapshot (!tagAtHead in recoverPackageRelease), that temporary worktree only runs pnpm install; packages/react/dist is gitignored and is not present in the tag checkout. This adapter then invokes the generic publish helper directly, so an incomplete already-tagged React release can be recovered by publishing a tarball without the compiled dist/index.js/types instead of rebuilding first. Please mirror the MCP/superdoc recovery paths and build React when publishing from a snapshot worktree.

Useful? React with 👍 / 👎.

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Adds react to the core chain after superdoc. react consumes `superdoc`
in dependencies, so releasing them in order through the orchestrator
means consumers never see a react release that pins to an older
superdoc than what just shipped.

- Adds `resumeReactPublish` adapter (uses generic `npm-publish-package.cjs`
  helper, idempotent against npm via dist-tag updates).
- Adds react descriptor to the `core` chain. A superdoc failure now skips
  react (fail-closed within chain); a tools failure still does not.
- `release-react.yml` stops auto-firing on stable; main pushes still
  publish prereleases.

Stacked on #3204 (superdoc orchestrator).
@caio-pizzol caio-pizzol force-pushed the release-orchestrator-pr3-react branch from a03f2cf to 58a368a Compare May 11, 2026 13:56
@caio-pizzol caio-pizzol merged commit b00ec92 into main May 11, 2026
15 checks passed
@caio-pizzol caio-pizzol deleted the release-orchestrator-pr3-react branch May 11, 2026 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants