From 05487b85e2515b83fac52535ab1dde956f83bed5 Mon Sep 17 00:00:00 2001 From: Rhys Sullivan <39114868+RhysSullivan@users.noreply.github.com> Date: Thu, 9 Jul 2026 14:06:28 -0700 Subject: [PATCH] Pin release workflows to npm 11 --- .github/workflows/publish-executor-package.yml | 4 +++- .github/workflows/release.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-executor-package.yml b/.github/workflows/publish-executor-package.yml index f3ce33a72..2ef813a67 100644 --- a/.github/workflows/publish-executor-package.yml +++ b/.github/workflows/publish-executor-package.yml @@ -62,7 +62,9 @@ jobs: - name: Update npm for trusted publishing run: | - npm install -g npm@latest + # npm 12.0.0 fails `publish --provenance` with "Cannot find module + # 'sigstore'" (npm/cli#9722); 11.x supports trusted publishing and works. + npm install -g npm@11 npm --version - name: Install dependencies diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 76ca85193..241d4757f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,7 +42,9 @@ jobs: - name: Update npm for trusted publishing run: | - npm install -g npm@latest + # npm 12.0.0 fails `publish --provenance` with "Cannot find module + # 'sigstore'" (npm/cli#9722); 11.x supports trusted publishing and works. + npm install -g npm@11 npm --version - name: Install dependencies