From fff84333f42088e78187961c55b3b21fe23df461 Mon Sep 17 00:00:00 2001 From: David Di Biase <1168397+davedbase@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:06:36 -0500 Subject: [PATCH] fix(release): publish the v1 line through npm trusted publishing 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 --- .github/workflows/{release.yml => release-tagged.yml} | 10 ++++++++++ 1 file changed, 10 insertions(+) rename .github/workflows/{release.yml => release-tagged.yml} (67%) diff --git a/.github/workflows/release.yml b/.github/workflows/release-tagged.yml similarity index 67% rename from .github/workflows/release.yml rename to .github/workflows/release-tagged.yml index 1d3567169..a156ca76c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release-tagged.yml @@ -6,6 +6,11 @@ on: concurrency: ${{ github.workflow }}-${{ github.ref }} +permissions: + contents: write + pull-requests: write + id-token: write # required for npm trusted publishing (OIDC) + jobs: release: runs-on: ubuntu-latest @@ -23,6 +28,11 @@ jobs: - name: Install Dependencies run: pnpm i + # Trusted publishing (OIDC) requires npm CLI >=11.5.1; Node 22's + # bundled npm is older, so upgrade the global npm used for publish. + - name: Ensure npm supports trusted publishing + run: npm install -g npm@latest + - name: Create Release Pull Request or Publish to npm id: changesets uses: changesets/action@v1