build(node): Bumping to Node 20 (#29988)
This commit is contained in:
parent
1ca5947a7d
commit
8e2f81816f
|
|
@ -31,7 +31,7 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "18"
|
node-version: "20"
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run ci:release
|
- run: npm run ci:release
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "18"
|
node-version: "20"
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm test
|
- run: npm test
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ jobs:
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '18'
|
node-version: '20'
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: npm install -g @action-validator/core @action-validator/cli --save-dev
|
run: npm install -g @action-validator/core @action-validator/cli --save-dev
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ jobs:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [18]
|
node-version: [20]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
browser: ["chrome"]
|
browser: ["chrome"]
|
||||||
node: [18]
|
node: [20]
|
||||||
env:
|
env:
|
||||||
SUPERSET_ENV: development
|
SUPERSET_ENV: development
|
||||||
SUPERSET_CONFIG: tests.integration_tests.superset_test_config
|
SUPERSET_CONFIG: tests.integration_tests.superset_test_config
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ jobs:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node: [18]
|
node: [20]
|
||||||
steps:
|
steps:
|
||||||
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
|
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,7 @@ jobs:
|
||||||
if: steps.check.outputs.python || steps.check.outputs.frontend
|
if: steps.check.outputs.python || steps.check.outputs.frontend
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "18"
|
node-version: "20"
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
if: steps.check.outputs.python || steps.check.outputs.frontend
|
if: steps.check.outputs.python || steps.check.outputs.frontend
|
||||||
uses: ./.github/actions/cached-dependencies
|
uses: ./.github/actions/cached-dependencies
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ jobs:
|
||||||
if: steps.check.outputs.frontend
|
if: steps.check.outputs.frontend
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "18"
|
node-version: "20"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: steps.check.outputs.frontend
|
if: steps.check.outputs.frontend
|
||||||
uses: ./.github/actions/cached-dependencies
|
uses: ./.github/actions/cached-dependencies
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ jobs:
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '18'
|
node-version: '20'
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ ARG PY_VER=3.10-slim-bookworm
|
||||||
|
|
||||||
# if BUILDPLATFORM is null, set it to 'amd64' (or leave as is otherwise).
|
# if BUILDPLATFORM is null, set it to 'amd64' (or leave as is otherwise).
|
||||||
ARG BUILDPLATFORM=${BUILDPLATFORM:-amd64}
|
ARG BUILDPLATFORM=${BUILDPLATFORM:-amd64}
|
||||||
FROM --platform=${BUILDPLATFORM} node:18-bullseye-slim AS superset-node
|
FROM --platform=${BUILDPLATFORM} node:20-bullseye-slim AS superset-node
|
||||||
|
|
||||||
ARG NPM_BUILD_CMD="build"
|
ARG NPM_BUILD_CMD="build"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -147,7 +147,7 @@ services:
|
||||||
disable: true
|
disable: true
|
||||||
|
|
||||||
superset-node:
|
superset-node:
|
||||||
image: node:18
|
image: node:20
|
||||||
environment:
|
environment:
|
||||||
# set this to false if you have perf issues running the npm i; npm run dev in-docker
|
# set this to false if you have perf issues running the npm i; npm run dev in-docker
|
||||||
# if you do so, you have to run this manually on the host, which should perform better!
|
# if you do so, you have to run this manually on the host, which should perform better!
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
v20.12.2
|
v20.16.0
|
||||||
|
|
|
||||||
|
|
@ -268,7 +268,7 @@ Frontend assets (TypeScript, JavaScript, CSS, and images) must be compiled in or
|
||||||
|
|
||||||
First, be sure you are using the following versions of Node.js and npm:
|
First, be sure you are using the following versions of Node.js and npm:
|
||||||
|
|
||||||
- `Node.js`: Version 18
|
- `Node.js`: Version 20
|
||||||
- `npm`: Version 10
|
- `npm`: Version 10
|
||||||
|
|
||||||
We recommend using [nvm](https://github.com/nvm-sh/nvm) to manage your node environment:
|
We recommend using [nvm](https://github.com/nvm-sh/nvm) to manage your node environment:
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
v18.20.1
|
v20.16.0
|
||||||
|
|
|
||||||
|
|
@ -292,8 +292,8 @@
|
||||||
"xdm": "^3.4.0"
|
"xdm": "^3.4.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.19.1",
|
"node": "^20.16.0",
|
||||||
"npm": "^10.2.4"
|
"npm": "^10.8.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@aashutoshrathi/word-wrap": {
|
"node_modules/@aashutoshrathi/word-wrap": {
|
||||||
|
|
|
||||||
|
|
@ -358,8 +358,8 @@
|
||||||
"xdm": "^3.4.0"
|
"xdm": "^3.4.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.19.1",
|
"node": "^20.16.0",
|
||||||
"npm": "^10.2.4"
|
"npm": "^10.8.1"
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"d3-color": "^3.1.0",
|
"d3-color": "^3.1.0",
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
v18.20.1
|
v20.16.0
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
v18.20.1
|
v20.16.0
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue