From 0d692d7b4d157973d0f04fb1c87dce30b6914150 Mon Sep 17 00:00:00 2001 From: Keeley Hammond Date: Mon, 22 Aug 2022 17:18:58 -0700 Subject: [PATCH] feat!: upgrade Node.js to 14 LTS (#1399) --- .circleci/config.yml | 21 ++++++++++++++------- .github/workflows/canary.yml | 4 ++-- .github/workflows/docs.yml | 2 +- package.json | 4 ++-- 4 files changed, 19 insertions(+), 12 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index bc8b7130..17f035a4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -46,17 +46,21 @@ version: 2.1 orbs: win: circleci/windows@2.4.0 jobs: - test-linux-12: - docker: - - image: circleci/node:12 - <<: *steps-ci test-linux-14: docker: - image: circleci/node:14 <<: *steps-ci + test-linux-16: + docker: + - image: circleci/node:16 + <<: *steps-ci + test-linux-18: + docker: + - image: cimg/node:18.7.0 + <<: *steps-ci test-mac: macos: - xcode: "11.7.0" + xcode: "13.3.0" <<: *steps-ci test-windows: executor: @@ -68,10 +72,13 @@ workflows: version: 2 test: jobs: - - test-linux-12: + - test-linux-14: filters: branches: { ignore: gh-pages } - - test-linux-14: + - test-linux-16: + filters: + branches: { ignore: gh-pages } + - test-linux-18: filters: branches: { ignore: gh-pages } - test-mac: diff --git a/.github/workflows/canary.yml b/.github/workflows/canary.yml index f4e4be9c..9e377494 100644 --- a/.github/workflows/canary.yml +++ b/.github/workflows/canary.yml @@ -17,10 +17,10 @@ jobs: repository: electron/electron-quick-start ref: refs/heads/master path: electron-quick-start - - name: Use Node.js 10.x + - name: Use Node.js 14.x uses: actions/setup-node@v2.4.1 with: - node-version: 10.x + node-version: 14.x - name: Replace electron with electron-nightly run: | cd electron-quick-start diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 45782da1..a73735ce 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -16,7 +16,7 @@ jobs: run: git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* - uses: actions/setup-node@v2.4.1 with: - node-version: 12.x + node-version: 14.x - run: npm install --engine-strict --no-lockfile - run: npm run docs:build - uses: docker://malept/gha-gh-pages:1.3.0 diff --git a/package.json b/package.json index fa64f3b2..02f80f6f 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "rcedit": "^3.0.1", "resolve": "^1.1.6", "semver": "^7.1.3", - "yargs-parser": "^20.2.9" + "yargs-parser": "^21.1.1" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^4.0.1", @@ -66,7 +66,7 @@ "typescript": "^4.0.2" }, "engines": { - "node": ">= 10.12.0" + "node": ">= 14.17.5" }, "scripts": { "ava": "ava test/index.js",