mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: use node version from puppeteer for issue analyzer (#9485)
This commit is contained in:
parent
4240e15f55
commit
3fde00525e
@ -12,6 +12,7 @@ import {
|
|||||||
lastMaintainedChromiumVersion,
|
lastMaintainedChromiumVersion,
|
||||||
} from '../versions.js';
|
} from '../versions.js';
|
||||||
import core from '@actions/core';
|
import core from '@actions/core';
|
||||||
|
import packageJson from '../packages/puppeteer/package.json' assert {type: 'json'};
|
||||||
|
|
||||||
const LAST_SUPPORTED_PUPPETEER_VERSION = versionsPerRelease.get(
|
const LAST_SUPPORTED_PUPPETEER_VERSION = versionsPerRelease.get(
|
||||||
lastMaintainedChromiumVersion
|
lastMaintainedChromiumVersion
|
||||||
@ -19,7 +20,7 @@ const LAST_SUPPORTED_PUPPETEER_VERSION = versionsPerRelease.get(
|
|||||||
if (!LAST_SUPPORTED_PUPPETEER_VERSION) {
|
if (!LAST_SUPPORTED_PUPPETEER_VERSION) {
|
||||||
core.setFailed('No maintained version found.');
|
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_OSES = ['windows', 'macos', 'linux'];
|
||||||
const SUPPORTED_PACKAGE_MANAGERS = ['yarn', 'npm', 'pnpm'];
|
const SUPPORTED_PACKAGE_MANAGERS = ['yarn', 'npm', 'pnpm'];
|
||||||
|
Loading…
Reference in New Issue
Block a user