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