From 3c52abab7c2d1e6a8a82e6922c7b56eb8cfc2f28 Mon Sep 17 00:00:00 2001 From: mingxuanzhang Date: Wed, 2 Oct 2024 16:41:16 -0700 Subject: [PATCH] ci: update node version for perf workflow --- .github/workflows/perf.yml | 2 ++ scripts/build.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml index 708c4ee6f..ecd8a74e3 100644 --- a/.github/workflows/perf.yml +++ b/.github/workflows/perf.yml @@ -19,6 +19,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 + with: + node-version: lts/* - uses: salesforcecli/github-workflows/.github/actions/yarnInstallWithRetries@main with: ignore-scripts: true diff --git a/scripts/build.js b/scripts/build.js index 31262570d..4073abe8d 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -45,7 +45,7 @@ const sharedConfig = { const filePath = `${tmpOutputFolder}/index.js`; let bundledEntryPoint = fs.readFileSync(filePath, 'utf8'); - // There is a wrong reference after bundling due to a bug from esbuild. We will replace it with the correct one. + // There is a wrong reference after bundling due to a bug from esbuild-plugin-pino. We will replace it with the correct one. const searchString = /\$\{process\.cwd\(\)\}\$\{require\("path"\)\.sep\}tmp-lib/g; const replacementString = `\${__dirname}\${require("path").sep}`;