Skip to content

fix(release): publish the v1 line through npm trusted publishing - #1158

Merged
davedbase merged 1 commit into
v1from
fix/v1-trusted-publishing
Dec 1, 2026
Merged

davedbase merged 1 commit into
v1from
fix/v1-trusted-publishing

Conversation

@davedbase

Copy link
Copy Markdown
Member

Summary

Follow-up to #1157. With the dist-tag fixed, every publish on v1 now gets past validation and fails with E404 Not Found - PUT https://registry.npmjs.org/@solid-primitives%2f<name>, which is how npm reports a publish with missing or invalid credentials. Nothing from v1 is on npm yet (timer@1.5.1 and date@2.1.13, the fix for #1151, are still unpublished).

Cause (evidence, not yet confirmed on npm's side)

  • The v1 workflow (release.yml) authenticates with the NPM_TOKEN secret. That secret was last updated 2026-06-04, and npm is restricting classic tokens that bypass 2FA for direct publishing.
  • main publishes through npm trusted publishing (OIDC) and just released timer@2.0.0 this way. scripts/setup-trusted-publishing.ts registers the trusted publishers against the workflow file release-tagged.yml, and main's workflow has id-token: write and a current npm. v1 has neither the permission, nor the right file name.
  • I could not read the trust configuration (npm trust list needs a login), so this is the most consistent explanation, not a verified one.

Change

Rename .github/workflows/release.yml to release-tagged.yml and add what main's workflow has: permissions including id-token: write, and the npm install -g npm@latest step (trusted publishing needs npm >= 11.5.1). The action versions stay as v1 had them, since its install and build steps work, and the publish step still runs pnpm run release (now changeset publish --tag solid-1).

What merging does

The Release workflow runs on every push to v1, so merging this triggers another publish attempt of the 53 waiting versions (list in #1157), under the solid-1 dist-tag. Two things to expect:

  • Packages that exist only on v1 (for example autofocus, immutable, page-visibility, stream) are probably not registered as trusted publishers, because the setup script iterates the packages on main. They will keep failing with the same 404 until a maintainer registers them: pnpm setup:trusted-publishing --file release-tagged.yml --only autofocus,immutable,page-visibility,stream (needs npm login). Packages that did publish stay published; Changesets continues with the next package.
  • If a package is not registered for trusted publishing at all, the alternative is a fresh granular NPM_TOKEN secret with publish rights, then re-running the failed workflow. npm is deprecating the old bypass-2FA tokens, so OIDC is the better long-term fix.

After it works

🤖 Generated with Claude Code

Every publish from this branch now fails with E404 on the PUT: the release workflow still uses
the NPM_TOKEN secret, while the trusted publishers registered by scripts/setup-trusted-publishing.ts
are bound to the workflow file release-tagged.yml and main publishes through OIDC. Rename the
workflow to release-tagged.yml and give it what main's has: id-token: write and a current npm.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Dec 1, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: fff8433

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Dec 1, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b8f91866-0509-4f90-8ee2-71cd9c241e5a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@davedbase
davedbase merged commit 43b09ea into v1 Dec 1, 2026
6 of 7 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