Skip to content

Commit

Permalink
fix: Update build process to node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio committed Dec 20, 2023
1 parent 3ca7dea commit ab27270
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,19 @@ 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:
cwd: ./webapp
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"
Expand Down
6 changes: 3 additions & 3 deletions webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@
"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",
"test": "react-app-rewired test",
"build": "CI=false react-scripts --openssl-legacy-provider build",
"test": "react-app-rewired --openssl-legacy-provider test",
"test:coverage": "npm run test -- --coverage",
"eject": "react-app-rewired eject",
"lint": "tslint -p tsconfig.json",
Expand Down

0 comments on commit ab27270

Please sign in to comment.