From ac4aacdf554ff5e8182af6b0daca762855e97061 Mon Sep 17 00:00:00 2001 From: Sambhav Aggarwal <4591834+sambhav-aggarwal@users.noreply.github.com> Date: Sun, 3 May 2026 15:15:04 +0530 Subject: [PATCH] Use Node 24 in CI (ships with npm 11.x for OIDC support) Self-upgrading npm in the runner via 'npm install -g npm@latest' hits a known MODULE_NOT_FOUND bug. Cleaner: jump to Node 24.x which already ships npm 11.x with the OIDC trusted-publishing flow built in. --- .github/workflows/publish.yml | 3 +-- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f3ac811..edfd02e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,9 +15,8 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 22.x + node-version: 24.x cache: npm - - run: npm install -g npm@latest - run: npm ci - run: npm run build - run: npm publish --provenance diff --git a/package-lock.json b/package-lock.json index 26ee7b2..ef58a03 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@ssntpl/otper-cli", - "version": "0.1.4", + "version": "0.1.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@ssntpl/otper-cli", - "version": "0.1.4", + "version": "0.1.5", "license": "MIT", "dependencies": { "@oclif/core": "^4.0.30", diff --git a/package.json b/package.json index 09ba843..0288906 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ssntpl/otper-cli", - "version": "0.1.4", + "version": "0.1.5", "description": "Command-line interface for Otper boards (https://otper.com).", "author": "SSNTPL ", "license": "MIT",