From 4ccc3b44db95a8c65ddbc3be7ce5b8787cedeefe Mon Sep 17 00:00:00 2001 From: Alexander Zeijlon Date: Mon, 3 Nov 2025 14:52:08 +0100 Subject: [PATCH] Use Node version 24 when publishing to npmjs Node 24 comes with npm > 11.5.1 which we need in order to publish with OIDC auth. This also reverts the change in commit e03a54e, which broke the publishing step. (cherry picked from commit d3d69a811832b2b207ed47575e5ec58eeeaa933c) --- .github/workflows/deploy.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 40d35ebf..1a18e936 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,9 +21,12 @@ jobs: if: github.event_name != 'release' - uses: actions/setup-node@v4 with: + # Node 24 is needed to get npm > 11.5.1, which is a requirement for + # OIDC auth. + node-version: 24 # Needs to be explicitly specified for auth to work registry-url: 'https://registry.npmjs.org' - - run: npm install -g npm@latest + - run: npm install - uses: actions/upload-artifact@v4 with: name: npm