From 9e9003bf13f2b85a31284f1cf673616e4d4f7429 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Thu, 30 Mar 2023 12:23:39 +0200 Subject: [PATCH] ci: Drop support for Node.js 14 (#5835) Node.js 14 goes EOL on 2023-04-30, and support for it should be dropped. https://github.com/nodejs/Release#release-schedule --- .github/workflows/ci-master.yml | 2 +- .github/workflows/e2e-tests.yml | 14 +------------- packages/cli/BREAKING-CHANGES.md | 14 ++++++++++++++ packages/cli/bin/n8n | 4 ++-- packages/cli/package.json | 2 +- 5 files changed, 19 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci-master.yml b/.github/workflows/ci-master.yml index b672cb127..f7a0f8f21 100644 --- a/.github/workflows/ci-master.yml +++ b/.github/workflows/ci-master.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - node-version: [14.x, 16.x] + node-version: [16.x] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 705928055..d34d1f855 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -51,22 +51,10 @@ jobs: secrets: CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} - run-e2e-tests-node-14: - name: E2E [Electron/Node 14] - uses: ./.github/workflows/e2e-reusable.yml - if: ${{ github.event_name == 'schedule' }} - with: - branch: ${{ github.event.inputs.branch || 'master' }} - user: ${{ github.event.inputs.user || 'schedule' }} - spec: ${{ github.event.inputs.spec || 'e2e/*' }} - run-env: base:14.21.1 - secrets: - CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} - calls-success-url-notify: name: Calls success URL and notifies runs-on: ubuntu-latest - needs: [run-e2e-tests, run-e2e-tests-node-14] + needs: [run-e2e-tests] if: ${{ github.event.inputs.success-url != '' }} steps: - name: Notify Slack on failure diff --git a/packages/cli/BREAKING-CHANGES.md b/packages/cli/BREAKING-CHANGES.md index 624ddacb4..47bb59f91 100644 --- a/packages/cli/BREAKING-CHANGES.md +++ b/packages/cli/BREAKING-CHANGES.md @@ -2,6 +2,20 @@ This list shows all the versions which include breaking changes and how to upgrade. +## 0.223.0 + +### What changed? + +The minimum Node.js version required for n8n is now v16. + +### When is action necessary? + +If you're using n8n via npm or PM2 or if you're contributing to n8n. + +### How to upgrade: + +Update the Node.js version to v16 or above. + ## 0.214.0 ### What changed? diff --git a/packages/cli/bin/n8n b/packages/cli/bin/n8n index 0591b1ef5..92c38b416 100755 --- a/packages/cli/bin/n8n +++ b/packages/cli/bin/n8n @@ -21,10 +21,10 @@ if (process.argv.length === 2) { const nodeVersion = process.versions.node; const nodeVersionMajor = require('semver').major(nodeVersion); -if (![14, 16, 18].includes(nodeVersionMajor)) { +if (![16, 18].includes(nodeVersionMajor)) { console.log(` Your Node.js version (${nodeVersion}) is currently not supported by n8n. - Please use Node.js v14, v16 (recommended), or v18 instead! + Please use Node.js v16 (recommended), or v18 instead! `); process.exit(1); } diff --git a/packages/cli/package.json b/packages/cli/package.json index fd6045ed7..a171f3c3f 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -54,7 +54,7 @@ "workflow" ], "engines": { - "node": ">=14.0.0" + "node": ">=16.9" }, "files": [ "bin",