From d9cd9d1e3f8e04bc3ccabfe67569f0ce5e276a4d Mon Sep 17 00:00:00 2001 From: Nathaniel Tucker Date: Sat, 20 Jan 2024 13:16:59 +0000 Subject: [PATCH] internal: Use node 20 for benchmark (#2933) --- .github/workflows/benchmark.yml | 2 +- examples/benchmark/package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index b9bd175a6ccd..40e57c75f482 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -29,7 +29,7 @@ jobs: fetch-depth: 1 - uses: actions/setup-node@v4 with: - node-version: '18' + node-version: '20' cache: 'yarn' - name: Install packages run: | diff --git a/examples/benchmark/package.json b/examples/benchmark/package.json index 95efb284da2b..b669f13831df 100644 --- a/examples/benchmark/package.json +++ b/examples/benchmark/package.json @@ -8,10 +8,10 @@ "private": true, "type": "module", "engines": { - "node": ">=18" + "node": ">=20" }, "scripts": { - "build": "BROWSERSLIST_ENV=node18 webpack --mode=production --target=node --env readable", + "build": "BROWSERSLIST_ENV=node20 webpack --mode=production --target=node --env readable", "start": "NODE_ENV=production node --allow-natives-syntax ./index.js", "start:trace": "yarn run start --trace_opt --trace_deopt", "start:deopt": "NODE_ENV=production npx dexnode --out v8.log --redirect-code-traces-to=/tmp/codetrace --allow-natives-syntax ./index.js"