Skip to content

Commit

Permalink
chore: Upgrade node version to 20.x
Browse files Browse the repository at this point in the history
  • Loading branch information
cyaiox committed May 8, 2024
1 parent 2f97cec commit 60c415b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ jobs:
registry-paths: ${{ steps.push-to-quay.outputs.registry-paths }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@master

- name: reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf "ssh://git@github.com/"
- name: node.js 18
uses: actions/setup-node@v3
- name: Use Node.js 20.x
uses: actions/setup-node@v4.0.1
with:
node-version: 18.x
node-version: 20.x
registry-url: https://registry.npmjs.org/
cache: 'npm'

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@master

- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf "ssh://git@github.com/"
- name: node.js 18
uses: actions/setup-node@v3
- name: Use Node.js 20.x
uses: actions/setup-node@v4.0.1
with:
node-version: 18.x
node-version: 20.x
registry-url: https://registry.npmjs.org/
cache: 'npm'

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18.8-alpine as compiler
FROM node:20.13-alpine as compiler

RUN apk add --no-cache openssh-client \
&& mkdir ~/.ssh && ssh-keyscan github.com > ~/.ssh/known_hosts
Expand Down Expand Up @@ -44,7 +44,7 @@ RUN NODE_OPTIONS="--max-old-space-size=2048" npm run build:server
RUN NODE_OPTIONS="--max-old-space-size=2048" npm run build:front -- --prefix-paths
RUN npm prune --production

FROM node:18.8-alpine
FROM node:20.13-alpine
WORKDIR /app

RUN rm -rf \
Expand Down

0 comments on commit 60c415b

Please sign in to comment.