From 4cd1b72554063ab9dd751c52589b699edd76c479 Mon Sep 17 00:00:00 2001 From: Julian Skinner Date: Thu, 16 May 2024 10:49:28 -0500 Subject: [PATCH] chore: update node engines to support v20 (#1888) Co-authored-by: Julian Skinner --- .github/workflows/lint-test-build.yml | 10 +++++----- docs/package.json | 2 +- packages/sage-assets/package.json | 2 +- packages/sage-packs/package.json | 2 +- packages/sage-react/package.json | 2 +- packages/sage-system/package.json | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/lint-test-build.yml b/.github/workflows/lint-test-build.yml index d573a4ee59..214dc9e30c 100644 --- a/.github/workflows/lint-test-build.yml +++ b/.github/workflows/lint-test-build.yml @@ -24,7 +24,7 @@ jobs: env: NODE_VERSION: ${{ matrix.node-version }} run: | - if [[ $NODE_VERSION == '18' ]]; then + if (( $NODE_VERSION >= 18 )); then NODE_OPTIONS=--openssl-legacy-provider npm install -g yarn else npm install -g yarn @@ -34,7 +34,7 @@ jobs: env: NODE_VERSION: ${{ matrix.node-version }} run: | - if [[ $NODE_VERSION == '18' ]]; then + if (( $NODE_VERSION >= 18 )); then NODE_OPTIONS=--openssl-legacy-provider yarn install else yarn install @@ -45,7 +45,7 @@ jobs: env: NODE_VERSION: ${{ matrix.node-version }} run: | - if [[ $NODE_VERSION == '18' ]]; then + if (( $NODE_VERSION >= 18 )); then NODE_OPTIONS=--openssl-legacy-provider yarn lint else yarn lint @@ -55,7 +55,7 @@ jobs: env: NODE_VERSION: ${{ matrix.node-version }} run: | - if [[ $NODE_VERSION == '18' ]]; then + if (( $NODE_VERSION >= 18 )); then NODE_OPTIONS=--openssl-legacy-provider yarn test else yarn test @@ -65,7 +65,7 @@ jobs: env: NODE_VERSION: ${{ matrix.node-version }} run: | - if [[ $NODE_VERSION == '18' ]]; then + if (( $NODE_VERSION >= 18 )); then NODE_OPTIONS=--openssl-legacy-provider yarn build else yarn build diff --git a/docs/package.json b/docs/package.json index 801273767f..5b23afbe3a 100644 --- a/docs/package.json +++ b/docs/package.json @@ -8,7 +8,7 @@ "test": "test" }, "engines": { - "node": "16.x || 18.x", + "node": "16.x || 18.x || 20.x", "npm": "8.x", "yarn": "1.x" }, diff --git a/packages/sage-assets/package.json b/packages/sage-assets/package.json index 63e8491d81..f2b20303c8 100644 --- a/packages/sage-assets/package.json +++ b/packages/sage-assets/package.json @@ -17,7 +17,7 @@ "sassdoc/*" ], "engines": { - "node": "16.x || 18.x", + "node": "16.x || 18.x || 20.x", "npm": "8.x", "yarn": "1.x" }, diff --git a/packages/sage-packs/package.json b/packages/sage-packs/package.json index 0fe0bd2575..57c6a3fbcf 100644 --- a/packages/sage-packs/package.json +++ b/packages/sage-packs/package.json @@ -7,7 +7,7 @@ "packs" ], "engines": { - "node": "16.x || 18.x", + "node": "16.x || 18.x || 20.x", "npm": "8.x", "yarn": "1.x" }, diff --git a/packages/sage-react/package.json b/packages/sage-react/package.json index 581b608f01..ce95707da6 100644 --- a/packages/sage-react/package.json +++ b/packages/sage-react/package.json @@ -28,7 +28,7 @@ "url": "https://github.com/Kajabi/sage-lib/issues" }, "engines": { - "node": "16.x || 18.x", + "node": "16.x || 18.x || 20.x", "npm": "8.x", "yarn": "1.x" }, diff --git a/packages/sage-system/package.json b/packages/sage-system/package.json index 02b9da19fb..4f3b070307 100644 --- a/packages/sage-system/package.json +++ b/packages/sage-system/package.json @@ -17,7 +17,7 @@ "dist/*" ], "engines": { - "node": "16.x || 18.x", + "node": "16.x || 18.x || 20.x", "npm": "8.x", "yarn": "1.x" },