mirror of
https://github.com/skooner-k8s/skooner.git
synced 2026-02-14 09:39:53 +00:00
try using node 16
This commit is contained in:
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
@@ -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
|
||||
|
||||
12
.github/workflows/release-package.yml
vendored
12
.github/workflows/release-package.yml
vendored
@@ -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}}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user