From 5ced06016e1f2c5c3c5c8326e89b1b6fd9dc7ef6 Mon Sep 17 00:00:00 2001 From: Robbie Wagner Date: Wed, 14 Jan 2026 13:09:21 -0500 Subject: [PATCH] Move npm latest install outside of pnpm if --- publish-template.yml.ejs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/publish-template.yml.ejs b/publish-template.yml.ejs index a8da400..76bf606 100644 --- a/publish-template.yml.ejs +++ b/publish-template.yml.ejs @@ -34,9 +34,9 @@ jobs: with: node-version: 22 registry-url: 'https://registry.npmjs.org'<% if (pnpm) { %> - cache: pnpm + cache: pnpm<% } %> + - run: npm install -g npm@latest # ensure that the globally installed npm is new enough to support OIDC<% if (pnpm) { %> - run: pnpm install --frozen-lockfile - - run: npm install -g npm@latest # ensure that the globally installed npm is new enough to support OIDC - name: Publish to NPM run: NPM_CONFIG_PROVENANCE=true pnpm release-plan publish<% } else { %> - run: npm ci