Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

chore: use OIDC to publish to npm (#5681)

Copilot5567aed50a00
diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml
index 01029fe4..077c75ed 100644
--- a/.github/workflows/release-please.yml
+++ b/.github/workflows/release-please.yml
@@ -7,6 +7,7 @@ on:
permissions:
contents: read
+ id-token: write
jobs:
release_please:
@@ -30,8 +31,6 @@ jobs:
environment: npm
needs: release_please
if: needs.release_please.outputs.releaseCreated
- permissions:
- id-token: write
steps:
- uses: actions/checkout@v6
with:
@@ -41,6 +40,9 @@ jobs:
node-version: "22"
registry-url: "https://registry.npmjs.org"
+ - name: Upgrade npm for OIDC support
+ run: npm install -g npm@latest
+
- name: Install dependencies
run: npm ci --ignore-scripts --force --no-fund --no-audit