From 3d16e868903bb7feaec8caf5964a6ca0661918f2 Mon Sep 17 00:00:00 2001 From: Lautaro Petaccio <1120791+LautaroPetaccio@users.noreply.github.com> Date: Wed, 20 Dec 2023 12:45:30 -0300 Subject: [PATCH] fix: Update build process to node 18 (#2076) * fix: Update build process to node 18 * fix: Use 18 as engine --- .github/workflows/build-release.yaml | 9 +++++---- webapp/package.json | 6 +++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml index 5da1928627..f8a8eef8b1 100644 --- a/.github/workflows/build-release.yaml +++ b/.github/workflows/build-release.yaml @@ -16,10 +16,11 @@ jobs: working-directory: ./webapp steps: - uses: actions/checkout@master - - name: Use Node.js 16.x - uses: actions/setup-node@v1 + - name: Use Node.js 18.x + uses: actions/setup-node with: - node-version: 16.x + node-version: 18.x + cache: "npm" - name: Set package.json version uses: menduz/oddish-action@master with: @@ -27,7 +28,7 @@ jobs: deterministic-snapshot: true only-update-versions: true - name: Install - run: npm ci --legacy-peer-deps + run: npm install --legacy-peer-deps - name: Build env: NODE_OPTIONS: "--max_old_space_size=4096" diff --git a/webapp/package.json b/webapp/package.json index 151b01660d..da588062c9 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -86,9 +86,9 @@ "typescript": "^4.9.3" }, "scripts": { - "start": "react-app-rewired start", + "start": "react-app-rewired --openssl-legacy-provider start", "prebuild": "node scripts/prebuild.js", - "build": "CI=false react-scripts build", + "build": "CI=false react-scripts --openssl-legacy-provider build", "test": "react-app-rewired test", "test:coverage": "npm run test -- --coverage", "eject": "react-app-rewired eject", @@ -105,7 +105,7 @@ "semi": false }, "engines": { - "node": "16.13.0" + "node": "18" }, "browserslist": { "production": [