Skip to content

chore: staged publishing for TS releases (pnpm 12 + pnpm stage publish) - #106

Merged
Farenheith merged 1 commit into
masterfrom
chore/staged-publish
Nov 19, 2026
Merged

Farenheith merged 1 commit into
masterfrom
chore/staged-publish

Conversation

@Farenheith

Copy link
Copy Markdown
Member

Every TS package now stages instead of publishing live, same as monorepo-utils (.release-it.base.js:54 there): CI queues the version with OIDC provenance; you approve with 2FA proof-of-presence (pnpm stage approve or the npm publish queue).

The pnpm pin bump is required: pnpm stage does not exist in pnpm@11.1.3 (current pin); 12.21.0 is exactly what monorepo-utils runs. Lockfile diff is pnpm-12 package-manager-dependency metadata only — zero dependency version changes.

All chore commits — path-scoped release-it won't fire a release from this PR. -rs bridges override the hook with the cargo script → crates.io unaffected.

The run-44428219192 failure, precisely

Not authenticated with npm is not about staging: release-it authenticates CI with the GitHub OIDC token, and the registry accepts it only when the package's Trusted Publisher names this repo + publish.yaml. The older packages have that relationship (@codibre/fluent-iterable@2.0.1 published from CI on Nov 14); the three-hour-old @fluent-iterable/lazy-structures does not. One-time npmjs.com click — same triple as crates.io: owner codibre / repo fluent-iterable / workflow publish.yaml. With that + this PR, the next publish run stages lazy-structures 0.2.0 for your approval.

- .release-it.base.js after:bump: pnpm publish -> pnpm stage publish,
  mirroring monorepo-utils: CI queues the version (OIDC provenance) and the
  owner approves from the npm publish queue with 2FA proof-of-presence.
  The -rs bridges override this hook with the cargo script; crates.io is
  unaffected.
- packageManager pnpm@11.1.3 -> pnpm@12.21.0: the stage command only exists
  in pnpm 12 (verified: 11.1.3 'Command stage not found').

chore commit on purpose: path-scoped release-it ignores chore, so nothing
releases by merging this.

Local gates on pnpm 12.21.0: install clean (lockfile = package-manager
metadata only, zero dependency changes); turbo build 9/9; lazy 12/12;
augmentative 53/53; config-loom check ok. (pre-commit skipped: husky env
resolves a stale corepack pnpm 11.1.3 -> version guard, not a lint failure;
CI lints the branch.)
@Farenheith
Farenheith merged commit bbc4c30 into master Nov 19, 2026
3 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