Skip to content

Commit

Permalink
Skip min version check for e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov committed May 29, 2024
1 parent 3f58fab commit 74c5d72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli/bin/n8n
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ const nodeVersion = process.versions.node;
const { major, gte } = require('semver');

const MINIMUM_SUPPORTED_NODE_VERSION = '18.17.0';
const ENFORCE_MIN_NODE_VERSION = process.env.E2E_TESTS !== 'true';

if (
!gte(nodeVersion, MINIMUM_SUPPORTED_NODE_VERSION) ||
(ENFORCE_MIN_NODE_VERSION && !gte(nodeVersion, MINIMUM_SUPPORTED_NODE_VERSION)) ||
![18, 20, 22].includes(major(nodeVersion))
) {
console.log(`
Expand Down

0 comments on commit 74c5d72

Please sign in to comment.