From bfcc30f63d4b8665c0dc61bcec06a910b7439d2d Mon Sep 17 00:00:00 2001 From: Phil Leggetter Date: Thu, 5 Nov 2026 17:12:20 +0000 Subject: [PATCH] ci: pin Node 24 because npm ci fails on Node 26 `lts/*` now resolves to Node 26, where `npm ci` fails compiling isolated-vm 6.2.0, a dev dependency that @n8n/expression-runtime pulls in. Every workflow installs with `npm ci`, so CI, Integration, Source type drift and Publish all break: the 2 Nov drift run and #35's build re-run on 5 Nov both failed there. Node 24 is the previous LTS and ships npm 11.19, so publish.yml's OIDC guard (npm >= 11.5.1) still passes. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 4 +++- .github/workflows/integration.yml | 4 +++- .github/workflows/publish.yml | 10 ++++++---- .github/workflows/source-types-drift.yml | 4 +++- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 685eabd..96a9899 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,9 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v5 with: - node-version: 'lts/*' + # Not `lts/*`: on Node 26, `npm ci` fails compiling isolated-vm 6.2.0, a dev + # dependency that @n8n/expression-runtime pulls in. Move on once it builds. + node-version: '24' cache: 'npm' - name: Install dependencies diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 4ebcca8..fe01352 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -42,7 +42,9 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v5 with: - node-version: 'lts/*' + # Not `lts/*`: on Node 26, `npm ci` fails compiling isolated-vm 6.2.0, a dev + # dependency that @n8n/expression-runtime pulls in. Move on once it builds. + node-version: '24' cache: 'npm' - name: Install dependencies diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d8d16ca..af4ef9c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -45,9 +45,9 @@ # credential in .npmrc takes precedence over OIDC, so a half-configured or empty # secret silently becomes the publishing identity, or fails. # -# OIDC needs npm >= 11.5.1 on Node >= 22.14, which `lts/*` satisfies. The guard -# below fails loudly rather than silently falling back if that ever stops being -# true. +# OIDC needs npm >= 11.5.1 on Node >= 22.14, which Node 24 satisfies (24.22 ships +# npm 11.19). The guard below fails loudly rather than silently falling back if +# that ever stops being true. name: Publish on: @@ -79,7 +79,9 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v5 with: - node-version: 'lts/*' + # Not `lts/*`: on Node 26, `npm ci` fails compiling isolated-vm 6.2.0, a dev + # dependency that @n8n/expression-runtime pulls in. Move on once it builds. + node-version: '24' cache: 'npm' - name: Install dependencies diff --git a/.github/workflows/source-types-drift.yml b/.github/workflows/source-types-drift.yml index 8020c03..1875f41 100644 --- a/.github/workflows/source-types-drift.yml +++ b/.github/workflows/source-types-drift.yml @@ -26,7 +26,9 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v5 with: - node-version: 'lts/*' + # Not `lts/*`: on Node 26, `npm ci` fails compiling isolated-vm 6.2.0, a dev + # dependency that @n8n/expression-runtime pulls in. Move on once it builds. + node-version: '24' cache: 'npm' - name: Install dependencies