Upgrade Node 16 > 18 (#1612)
This commit is contained in:
parent
b43f550ff3
commit
26820cbaba
2
.github/workflows/frontend-build-check.yaml
vendored
2
.github/workflows/frontend-build-check.yaml
vendored
@ -15,7 +15,7 @@ jobs:
|
|||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '16'
|
node-version: '18'
|
||||||
cache: 'yarn'
|
cache: 'yarn'
|
||||||
cache-dependency-path: frontend/yarn.lock
|
cache-dependency-path: frontend/yarn.lock
|
||||||
- name: Restore cache
|
- name: Restore cache
|
||||||
|
2
.github/workflows/ui-tests-playwright.yml
vendored
2
.github/workflows/ui-tests-playwright.yml
vendored
@ -22,7 +22,7 @@ jobs:
|
|||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '16'
|
node-version: '18'
|
||||||
cache: 'yarn'
|
cache: 'yarn'
|
||||||
cache-dependency-path: frontend/yarn.lock
|
cache-dependency-path: frontend/yarn.lock
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
@ -1,21 +1,21 @@
|
|||||||
# syntax=docker/dockerfile:1.4
|
# syntax=docker/dockerfile:1.4
|
||||||
FROM --platform=$BUILDPLATFORM docker.io/library/node:16 as build_deps
|
FROM --platform=$BUILDPLATFORM docker.io/library/node:18 as build_deps
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY yarn.lock package.json ./
|
COPY yarn.lock package.json ./
|
||||||
# Uses `yarn cache clean` to let Docker cache layer instead
|
# Uses `yarn cache clean` to let Docker cache layer instead
|
||||||
# of including yarn cache in the build image
|
# of including yarn cache in the build image
|
||||||
RUN yarn --production --frozen-lockfile --ignore-optional --network-timeout 1000000 && \
|
RUN yarn --production --frozen-lockfile --ignore-optional --network-timeout 1000000 && \
|
||||||
yarn cache clean
|
yarn cache clean
|
||||||
|
|
||||||
COPY --link lit-localize.json \
|
COPY --link lit-localize.json \
|
||||||
postcss.config.js \
|
postcss.config.js \
|
||||||
tailwind.config.js \
|
tailwind.config.js \
|
||||||
tsconfig.json \
|
tsconfig.json \
|
||||||
webpack.config.js \
|
webpack.config.js \
|
||||||
webpack.prod.js \
|
webpack.prod.js \
|
||||||
index.d.ts \
|
index.d.ts \
|
||||||
./
|
./
|
||||||
|
|
||||||
COPY --link src ./src/
|
COPY --link src ./src/
|
||||||
|
|
||||||
@ -27,8 +27,8 @@ ARG GIT_BRANCH_NAME
|
|||||||
ARG VERSION
|
ARG VERSION
|
||||||
|
|
||||||
ENV GIT_COMMIT_HASH=${GIT_COMMIT_HASH} \
|
ENV GIT_COMMIT_HASH=${GIT_COMMIT_HASH} \
|
||||||
GIT_BRANCH_NAME=${GIT_BRANCH_NAME} \
|
GIT_BRANCH_NAME=${GIT_BRANCH_NAME} \
|
||||||
VERSION=${VERSION}
|
VERSION=${VERSION}
|
||||||
|
|
||||||
# Prevent Docker image including node_modules to save space
|
# Prevent Docker image including node_modules to save space
|
||||||
RUN yarn build && \
|
RUN yarn build && \
|
||||||
|
@ -127,7 +127,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"**/playwright": "1.32.1",
|
"**/playwright": "1.32.1",
|
||||||
|
Loading…
Reference in New Issue
Block a user