From 08a4176b7d7731e452851e9817db2e3e4e9c21ca Mon Sep 17 00:00:00 2001 From: Wesley Dai Date: Thu, 16 May 2024 22:12:04 -0500 Subject: [PATCH] ci: bump Node to v20 --- .github/workflows/build.yml | 2 +- package.json | 7 ++++--- yarn.lock | 9 ++++++++- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8915b3d..fcb5083 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 20 cache: yarn - name: Install dependencies diff --git a/package.json b/package.json index 91da76b..cd8fb7f 100644 --- a/package.json +++ b/package.json @@ -40,15 +40,16 @@ }, "devDependencies": { "@types/gtag.js": "^0.0.12", + "cross-env": "^7.0.3", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", "prettier": "^2.1.2", "source-map-explorer": "^2.5.0" }, "scripts": { - "start": "react-scripts start", - "build": "GENERATE_SOURCEMAP=false react-scripts build", - "analyze": "react-scripts build && source-map-explorer 'build/static/js/*.js'", + "start": "cross-env NODE_OPTIONS=--openssl-legacy-provider react-scripts start", + "build": "cross-env GENERATE_SOURCEMAP=false NODE_OPTIONS=--openssl-legacy-provider react-scripts build", + "analyze": "cross-env NODE_OPTIONS=--openssl-legacy-provider react-scripts build && source-map-explorer 'build/static/js/*.js'", "test": "react-scripts test", "eject": "react-scripts eject", "predeploy": "yarn run build", diff --git a/yarn.lock b/yarn.lock index 5014765..1533425 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4143,7 +4143,14 @@ create-hmac@^1.1.0, create-hmac@^1.1.4, create-hmac@^1.1.7: safe-buffer "^5.0.1" sha.js "^2.4.8" -cross-spawn@7.0.3, cross-spawn@^7.0.0, cross-spawn@^7.0.2: +cross-env@^7.0.3: + version "7.0.3" + resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-7.0.3.tgz#865264b29677dc015ba8418918965dd232fc54cf" + integrity sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw== + dependencies: + cross-spawn "^7.0.1" + +cross-spawn@7.0.3, cross-spawn@^7.0.0, cross-spawn@^7.0.1, cross-spawn@^7.0.2: version "7.0.3" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==