Skip to content

chore: add missing release-it config for lazy-structures - #109

Merged
Farenheith merged 2 commits into
masterfrom
chore/lazy-release-it-config
Nov 19, 2026
Merged

Farenheith merged 2 commits into
masterfrom
chore/lazy-release-it-config

Conversation

@Farenheith

Copy link
Copy Markdown
Member

Why

libs/fluent-iterable-lazy-structures was merged without a .release-it.js. Every other publishable package has the two-line file wiring .release-it.base.js (npm.publish:false + skipChecks:true, path-scoped changelog/increment gate, [skip ci] commit format, stage-publish hook).

Without it, release-it ran with factory defaults for this package only:

  • npm.publish defaults to true and skipChecks to false → the npm plugin runs its pre-flight validation (npm ping + npm whoami + npm show);
  • under CI the registry bearer is a GitHub OIDC token (no classic token exists anywhere), npm whoami fails in a way release-it does not tolerate → ERROR Not authenticated with npm.

So the failure was package-specific by construction — no CI-wide auth bug ever existed. This also explains why the other six packages skip cleanly in the very same run and job.

Proof (local, no real credentials)

Simulating the CI npm stack (NPM_CONFIG_USERCONFIG redirected like setup-node does, unresolvable ${NODE_AUTH_TOKEN}):

package config result
lazy-structures missing ERROR Not authenticated with npm. Please npm login... (identical to CI)
fluent-iterable-rxjs present clean (gate evaluates, no auth attempted)
lazy-structures added by this PR green dry-run: minor bump 0.1.0 → 0.2.0, hook pnpm stage publish --no-git-checks --provenance, tag staged

Changes

After merge

Dispatch publish.yaml (dry_run=true first). Expect lazy-structures dry-run: minor bump, staged publish hook line; then a real dispatch queues @fluent-iterable/lazy-structures@0.2.0 in the npm publish queue.

Every other publishable package ships a two-line .release-it.js pulling
in .release-it.base.js (npm publish:false + skipChecks:true, per-package
changelog path-scoping, [skip ci] commit format, stage-publish hook).
lazy-structures shipped without it, so release-it ran with factory
defaults: npm auth validation enabled -> npm whoami under the CI
npmrc (OIDC bearer, not a classic token) -> Not authenticated.
Reproduced locally: rm config -> exact CI error; restore -> green dry-run.
Root cause was the missing per-package release-it config, not the OIDC
token. The mint flow needs no diagnostics.
@Farenheith
Farenheith merged commit 7c4da42 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