Skip to content

feat(release): add validated manual sdk publishing - #5

Merged
agalwood merged 1 commit into
mainfrom
feat/sdk_release_script_20261012
Oct 12, 2026
Merged

agalwood merged 1 commit into
mainfrom
feat/sdk_release_script_20261012

Conversation

@agalwood

@agalwood agalwood commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

SDK publication currently relies on manual per-package commands outside the repository. Add pnpm run release as the canonical entrypoint: by default it installs locked dependencies, runs the quality gates, builds and tests the SDK, then packs and inspects all four npm tarballs without uploading.

pnpm run release -- --publish remains maintainer-triggered. It requires a clean, current main, an interactive terminal outside CI and explicit confirmation of the displayed package plan. Uploads follow schema → API → CLI → create wrapper, using the verified archives. Existing versions are skipped only when their SHA-512 integrity matches; conflicts stop the batch before uploads. Every upload is verified before the next, and failures preserve artifacts and a progress report for partial-release recovery. There is no force, automatic confirmation, tag creation or automatic publication workflow.

Add English/Chinese release guides and README links, update the agent guidance to the canonical preparation entrypoint, and run real preparation in the existing OS/Node CI matrix. Stable versions and the public npm registry/latest tag are the initial supported scope.

Validation:

  • Full lint, schema facade check, build and workspace typecheck pass.
  • 27 release-tool tests plus 128 existing SDK tests pass; 2 existing host-dependent tests remain skipped. Publication tests inject command/registry substitutes and perform no real uploads.
  • Two complete preparation runs succeed and produce byte-identical tarballs for all four packages. Archive checks cover identities, entrypoints, rewritten workspace dependencies, registry configuration and digests.
  • No npm package was published, no release tag was pushed and no signing or deployment was performed.

Follows the merged implementation/version preparation in #3 and #4. Consumers remain blocked on the separately authorized, human-run SDK publication: Motrix#2350, builtin-plugins#7.

GitHub CI: all six Ubuntu/Windows/macOS × Node 22/24 jobs pass, including the actual preparation command.

@agalwood
agalwood merged commit 04782e1 into main Oct 12, 2026
6 checks passed
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