From be38184a671e39bf0d44e272ce62f15df3e7d058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20Baz=20Castillo?= Date: Wed, 25 Oct 2023 12:59:33 +0200 Subject: [PATCH] Use `npm ci --force` to make CI work in Node 16 --- .github/workflows/mediasoup-node.yaml | 4 +++- npm-scripts.mjs | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/mediasoup-node.yaml b/.github/workflows/mediasoup-node.yaml index da27b8514e..7fdfaef856 100644 --- a/.github/workflows/mediasoup-node.yaml +++ b/.github/workflows/mediasoup-node.yaml @@ -47,6 +47,8 @@ jobs: restore-keys: | ${{ matrix.ci.os }}-node- - - run: npm ci + # NOTE: Add --force since otherwise `npm ci` fails in Node 26 because + # @octokit/auth-token dev dependency requires Node >= 16. + - run: npm ci --force - run: npm run lint:node - run: npm run test:node diff --git a/npm-scripts.mjs b/npm-scripts.mjs index 2a32a16886..de080af5b1 100644 --- a/npm-scripts.mjs +++ b/npm-scripts.mjs @@ -631,6 +631,10 @@ async function downloadPrebuiltWorker() env : {} } ); + + logInfo( + 'downloadPrebuiltWorker() | fetched mediasoup-worker prebuilt binary is valid for current host' + ); } catch (error) {