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
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '16'
|
||||
node-version: '18'
|
||||
cache: 'yarn'
|
||||
cache-dependency-path: frontend/yarn.lock
|
||||
- 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
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '16'
|
||||
node-version: '18'
|
||||
cache: 'yarn'
|
||||
cache-dependency-path: frontend/yarn.lock
|
||||
- name: Install dependencies
|
||||
|
@ -1,21 +1,21 @@
|
||||
# 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
|
||||
COPY yarn.lock package.json ./
|
||||
# Uses `yarn cache clean` to let Docker cache layer instead
|
||||
# of including yarn cache in the build image
|
||||
RUN yarn --production --frozen-lockfile --ignore-optional --network-timeout 1000000 && \
|
||||
yarn cache clean
|
||||
yarn cache clean
|
||||
|
||||
COPY --link lit-localize.json \
|
||||
postcss.config.js \
|
||||
tailwind.config.js \
|
||||
tsconfig.json \
|
||||
webpack.config.js \
|
||||
webpack.prod.js \
|
||||
index.d.ts \
|
||||
./
|
||||
postcss.config.js \
|
||||
tailwind.config.js \
|
||||
tsconfig.json \
|
||||
webpack.config.js \
|
||||
webpack.prod.js \
|
||||
index.d.ts \
|
||||
./
|
||||
|
||||
COPY --link src ./src/
|
||||
|
||||
@ -27,8 +27,8 @@ ARG GIT_BRANCH_NAME
|
||||
ARG VERSION
|
||||
|
||||
ENV GIT_COMMIT_HASH=${GIT_COMMIT_HASH} \
|
||||
GIT_BRANCH_NAME=${GIT_BRANCH_NAME} \
|
||||
VERSION=${VERSION}
|
||||
GIT_BRANCH_NAME=${GIT_BRANCH_NAME} \
|
||||
VERSION=${VERSION}
|
||||
|
||||
# Prevent Docker image including node_modules to save space
|
||||
RUN yarn build && \
|
||||
|
@ -127,7 +127,7 @@
|
||||
}
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"resolutions": {
|
||||
"**/playwright": "1.32.1",
|
||||
|
Loading…
Reference in New Issue
Block a user