Skip to content

ci: use npm 12.2 for legacy tag migration - #842

Merged
roncohen merged 1 commit into
maintenance/v1from
fix/legacy-tags-npm-version
Nov 29, 2026
Merged

roncohen merged 1 commit into
maintenance/v1from
fix/legacy-tags-npm-version

Conversation

@roncohen

Copy link
Copy Markdown
Contributor

Summary

Fix the npm CLI version used by the manual legacy-tag migration. The failed run used npm 11.19.1 bundled with Node 24.22.0 and failed with E401 on the first npm dist-tag add.

OIDC-authenticated dist-tag commands require npm 11.21.0+ or 12.2.0+. Install npm 12.2.0 explicitly and verify the selected version before changing tags. Add a regression test for that ordering.

Package code, publishing behavior, tag targets, branch protections, and OIDC permissions are unchanged. No token fallback or new secret is introduced.

Validation

  • All 13 release safeguards passed; the new regression failed before the workflow fix.
  • Verified an isolated upgrade from npm 11.19.1 to 12.2.0 using a synthetic setup-node-style npm configuration.
  • Read-only release-plan check passed with no unpublished v1 packages.
  • Workflow YAML/step-order checks, immutable install, scoped lint, formatting, whitespace checks, and normal commit hooks passed.

No npm publication or tag mutation was performed. Actual GitHub OIDC tagging still needs a fresh dispatch after merge, and the matching trusted publishers must allow npm dist-tag. Rerunning the old failed run would retain its old workflow commit.

@reflag-review reflag-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Risk: medium

no actionable findings

@roncohen
roncohen enabled auto-merge (squash) November 29, 2026 18:35
@roncohen
roncohen disabled auto-merge November 29, 2026 18:35
@roncohen
roncohen merged commit 8a6862e into maintenance/v1 Nov 29, 2026
11 checks passed
@roncohen
roncohen deleted the fix/legacy-tags-npm-version branch November 29, 2026 18:35
roncohen added a commit that referenced this pull request Nov 29, 2026
Remove the npm-version regression test added in #842, as requested. Keep
the npm 12.2.0 workflow fix and all existing release safeguards
unchanged.

Validation: the remaining 12 release safeguards, formatting, whitespace
checks, and normal commit hooks passed. No npm publication or tag
changes were performed.
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