From 3fde00525e5256ca40dd4e143b89efe778bf51a0 Mon Sep 17 00:00:00 2001 From: jrandolf <101637635+jrandolf@users.noreply.github.com> Date: Wed, 11 Jan 2023 13:38:23 +0100 Subject: [PATCH] chore: use node version from puppeteer for issue analyzer (#9485) --- tools/analyze_issue.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/analyze_issue.mjs b/tools/analyze_issue.mjs index bb1bf5a8..4a534568 100755 --- a/tools/analyze_issue.mjs +++ b/tools/analyze_issue.mjs @@ -12,6 +12,7 @@ import { lastMaintainedChromiumVersion, } from '../versions.js'; import core from '@actions/core'; +import packageJson from '../packages/puppeteer/package.json' assert {type: 'json'}; const LAST_SUPPORTED_PUPPETEER_VERSION = versionsPerRelease.get( lastMaintainedChromiumVersion @@ -19,7 +20,7 @@ const LAST_SUPPORTED_PUPPETEER_VERSION = versionsPerRelease.get( if (!LAST_SUPPORTED_PUPPETEER_VERSION) { core.setFailed('No maintained version found.'); } -const LAST_SUPPORTED_NODE_VERSION = '14.19.0'; +const LAST_SUPPORTED_NODE_VERSION = packageJson.engines.node.slice(2).trim(); const SUPPORTED_OSES = ['windows', 'macos', 'linux']; const SUPPORTED_PACKAGE_MANAGERS = ['yarn', 'npm', 'pnpm'];