try using node 16

This commit is contained in:
Yuqiu Wang
2023-09-13 12:42:56 -05:00
parent 7946fd3497
commit 699209957c
3 changed files with 12 additions and 12 deletions

View File

@@ -9,10 +9,10 @@ jobs:
working-directory: "./client"
steps:
- uses: actions/checkout@v2
- name: Setup node 20
- name: Setup node 16
uses: actions/setup-node@v1
with:
node-version: 20.x
node-version: 16.x
- run: npm ci
working-directory: ${{env.working-directory}}
- run: npm run build
@@ -29,10 +29,10 @@ jobs:
# working-directory: "./server"
# steps:
# - uses: actions/checkout@v2
# - name: Setup node 20
# - name: Setup node 16
# uses: actions/setup-node@v1
# with:
# node-version: 20.x
# node-version: 16.x
# - run: npm ci
# working-directory: ${{env.working-directory}}
# - run: npm run build

View File

@@ -11,10 +11,10 @@ jobs:
working-directory: "./client"
steps:
- uses: actions/checkout@v2
- name: Setup node 20
- name: Setup node 16
uses: actions/setup-node@v1
with:
node-version: 20.x
node-version: 16.x
- run: npm ci
working-directory: ${{env.working-directory}}
- run: npm run build
@@ -32,10 +32,10 @@ jobs:
contents: read
steps:
- uses: actions/checkout@v2
- name: Setup node 20
- name: Setup node 16
uses: actions/setup-node@v1
with:
node-version: 20.x
node-version: 16.x
registry-url: https://npm.pkg.github.com/
- run: npm ci
working-directory: ${{env.working-directory}}
@@ -54,10 +54,10 @@ jobs:
contents: read
steps:
- uses: actions/checkout@v2
- name: Setup node 20
- name: Setup node 16
uses: actions/setup-node@v1
with:
node-version: 20.x
node-version: 16.x
registry-url: https://npm.pkg.github.com/
- run: npm ci
working-directory: ${{env.working-directory}}

View File

@@ -1,5 +1,5 @@
# Stage 1 - the build react app
FROM node:20.1.1 as build-deps
FROM node:16.11.7 as build-deps
WORKDIR /usr/src/app
COPY client/package.json client/package-lock.json ./
RUN npm i
@@ -8,7 +8,7 @@ COPY client/ ./
RUN npm run build
# Stage 2 - the production environment
FROM node:20.1.1
FROM node:16.11.7
RUN apk add --no-cache tini
ENV NODE_ENV production