From 26f53f2d22994349aaf1dc59d731ad7073a4be48 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Mon, 22 Sep 2025 15:15:56 +0200 Subject: [PATCH] devops: migrate to OIDC NPM publishing --- .github/workflows/publish.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0125488..eb33cd8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,14 +7,15 @@ jobs: runs-on: ubuntu-22.04 permissions: contents: read - id-token: write + id-token: write # Required for OIDC steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 20 registry-url: https://registry.npmjs.org/ + # Ensure npm 11.5.1 or later is installed (for OIDC npm publishing) + - name: Update npm + run: npm install -g npm@latest - run: npm ci - - run: npm publish --provenance - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + - run: npm publish