Skip to content

Commit

Permalink
feat: Use Node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio committed Feb 27, 2024
1 parent 991539c commit e541f5f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 46 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ on:

jobs:
build-release:
permissions:
id-token: write
runs-on: ubuntu-latest
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@v4.0.1
with:
node-version: 16.x
node-version: 18.x
- name: set package.json version
uses: menduz/oddish-action@master
with:
Expand All @@ -26,7 +28,7 @@ jobs:
run: npm ci --legacy-peer-deps
- name: Build static-local
run: npm run build:static-local
env:
env:
NODE_OPTIONS: --max_old_space_size=8192
- name: Build for CDN
run: npm run build
Expand Down
50 changes: 12 additions & 38 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
"web-vitals": "^1.1.2"
},
"scripts": {
"start": "react-scripts start",
"start:debug": "REACT_APP_DEBUG=1 react-scripts start",
"build": "CI=false && react-scripts build",
"start": "react-scripts --openssl-legacy-provider start",
"start:debug": "REACT_APP_DEBUG=1 react-scripts --openssl-legacy-provider start",
"build": "CI=false && react-scripts --openssl-legacy-provider build",
"build:static-local": "GEN_STATIC_LOCAL=true npm run build && mv ./build ./static-local",
"test": "react-scripts test",
"eject": "react-scripts eject",
"eject": "react-scripts --openssl-legacy-provider eject",
"prebuild": "node ./scripts/prebuild.js"
},
"eslintConfig": {
Expand All @@ -45,6 +45,9 @@
"react-app/jest"
]
},
"engines": {
"node": "18"
},
"browserslist": {
"production": [
">0.2%",
Expand Down

0 comments on commit e541f5f

Please sign in to comment.