Skip to content

Commit

Permalink
chore: upgrade nodejs from 16 to 22.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Its-Alex committed Jul 2, 2024
1 parent 2939a23 commit 64ac0ff
Show file tree
Hide file tree
Showing 5 changed files with 4,013 additions and 3,983 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
lint-backend:
runs-on: ubuntu-latest
container: node:16.17.1-alpine3.16
container: node:22.3.0-alpine3.19
steps:
- name: Checkout project
uses: actions/checkout@v3
Expand All @@ -18,7 +18,7 @@ jobs:
yarn lint
lint-frontend:
runs-on: ubuntu-latest
container: node:16.17.1-alpine3.16
container: node:22.3.0-alpine3.19
steps:
- name: Checkout project
uses: actions/checkout@v3
Expand All @@ -31,7 +31,7 @@ jobs:
test-backend:
needs: [lint-backend]
runs-on: ubuntu-latest
container: node:16.17.1-alpine3.16
container: node:22.3.0-alpine3.19
steps:
- name: Checkout project
uses: actions/checkout@v3
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: '16.17.1'
node-version: '22.3.0'
registry-url: 'https://registry.npmjs.org'
- run: scripts/deploy-to-npm.sh
env:
Expand Down
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
nodejs 16.17.1
yarn 1.22.10
nodejs 22.3.0
yarn 1.22.22
direnv 2.28.0
5 changes: 3 additions & 2 deletions docker-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16.17.1-alpine3.16
FROM node:22.3.0-alpine3.19

RUN mkdir -p /src/

Expand All @@ -8,7 +8,7 @@ WORKDIR /src/frontend/
RUN yarn install
RUN yarn run build

FROM node:16.17.1-alpine3.16
FROM node:22.3.0-alpine3.19

RUN mkdir -p /src/
WORKDIR /src/
Expand All @@ -22,6 +22,7 @@ RUN yarn install
COPY backend/src/ /src/src/

ENV PORT=5000
ENV NODE_OPTIONS=--openssl-legacy-provider
EXPOSE 5000

ENV TEMPLATES_PATH=/templates/
Expand Down
10 changes: 5 additions & 5 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"eslint-plugin-react": "7.23.1"
},
"scripts": {
"start": "BROWSER=none react-scripts start",
"build": "react-scripts build",
"eject": "react-scripts eject",
"lint": "eslint --ignore-path .gitignore .",
"pretest": "eslint --ignore-path .gitignore ."
"start": "BROWSER=none NODE_OPTIONS=--openssl-legacy-provider react-scripts start",
"build": "NODE_OPTIONS=--openssl-legacy-provider react-scripts build",
"eject": "NODE_OPTIONS=--openssl-legacy-provider react-scripts eject",
"lint": "NODE_OPTIONS=--openssl-legacy-provider eslint --ignore-path .gitignore .",
"pretest": "NODE_OPTIONS=--openssl-legacy-provider eslint --ignore-path .gitignore ."
},
"browserslist": {
"production": [
Expand Down
Loading

0 comments on commit 64ac0ff

Please sign in to comment.