ci: Use node.js 22 by default. Add initial support for node.js 24 (#16018)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-06-04 17:49:31 +02:00
committed by GitHub
parent 3bdbdfe6ce
commit 52a9d4b3d9
28 changed files with 135 additions and 125 deletions

View File

@@ -18,20 +18,17 @@ if (process.argv.length === 2) {
process.argv.push('start');
}
const ENFORCE_NODE_VERSION_RANGE = process.env.E2E_TESTS !== 'true';
if (ENFORCE_NODE_VERSION_RANGE) {
const satisfies = require('semver/functions/satisfies');
const nodeVersion = process.versions.node;
const {
engines: { node: supportedNodeVersions },
} = require('../package.json');
if (!satisfies(nodeVersion, supportedNodeVersions)) {
console.error(`
const satisfies = require('semver/functions/satisfies');
const nodeVersion = process.versions.node;
const {
engines: { node: supportedNodeVersions },
} = require('../package.json');
if (!satisfies(nodeVersion, supportedNodeVersions)) {
console.error(`
Your Node.js version ${nodeVersion} is currently not supported by n8n.
Please use a Node.js version that satisfies the following version range: ${supportedNodeVersions}
`);
process.exit(1);
}
process.exit(1);
}
// Disable nodejs custom inspection across the app