From a8a8710fda80e686248d4aab9a25246a6ce5618b Mon Sep 17 00:00:00 2001 From: kurtis tryber Date: Wed, 21 Oct 2026 09:07:25 -0700 Subject: [PATCH] Release: let npm use trusted publishing (no placeholder .npmrc token) --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e057aeb..7169eb9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,10 +50,11 @@ jobs: - uses: actions/setup-node@v4 with: # Trusted publishing needs npm 11.5.1 or newer. + # No registry-url: it writes an .npmrc with a placeholder token, and npm then + # publishes with that token instead of trusted publishing (OIDC). node-version: '24' - registry-url: 'https://registry.npmjs.org' cache: npm - - run: npm install -g npm@latest + - run: npm install -g npm@latest && npm --version - run: npm ci - run: npm run build - run: npm test