chore: remove version prefix for IA (#9488)
This commit is contained in:
parent
000ad18792
commit
305183c330
@ -14,17 +14,6 @@ import {
|
|||||||
import core from '@actions/core';
|
import core from '@actions/core';
|
||||||
import packageJson from '../packages/puppeteer/package.json' assert {type: 'json'};
|
import packageJson from '../packages/puppeteer/package.json' assert {type: 'json'};
|
||||||
|
|
||||||
const LAST_SUPPORTED_PUPPETEER_VERSION = versionsPerRelease.get(
|
|
||||||
lastMaintainedChromiumVersion
|
|
||||||
);
|
|
||||||
if (!LAST_SUPPORTED_PUPPETEER_VERSION) {
|
|
||||||
core.setFailed('No maintained version found.');
|
|
||||||
}
|
|
||||||
const LAST_SUPPORTED_NODE_VERSION = packageJson.engines.node.slice(2).trim();
|
|
||||||
|
|
||||||
const SUPPORTED_OSES = ['windows', 'macos', 'linux'];
|
|
||||||
const SUPPORTED_PACKAGE_MANAGERS = ['yarn', 'npm', 'pnpm'];
|
|
||||||
|
|
||||||
const codifyAndJoinValues = values => {
|
const codifyAndJoinValues = values => {
|
||||||
return values
|
return values
|
||||||
.map(value => {
|
.map(value => {
|
||||||
@ -39,6 +28,19 @@ const removeVersionPrefix = value => {
|
|||||||
return value.startsWith('v') ? value.slice(1) : value;
|
return value.startsWith('v') ? value.slice(1) : value;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const LAST_SUPPORTED_PUPPETEER_VERSION = removeVersionPrefix(
|
||||||
|
versionsPerRelease.get(lastMaintainedChromiumVersion) ?? ''
|
||||||
|
);
|
||||||
|
if (!LAST_SUPPORTED_PUPPETEER_VERSION) {
|
||||||
|
core.setFailed('No maintained version found.');
|
||||||
|
}
|
||||||
|
const LAST_SUPPORTED_NODE_VERSION = removeVersionPrefix(
|
||||||
|
packageJson.engines.node.slice(2).trim()
|
||||||
|
);
|
||||||
|
|
||||||
|
const SUPPORTED_OSES = ['windows', 'macos', 'linux'];
|
||||||
|
const SUPPORTED_PACKAGE_MANAGERS = ['yarn', 'npm', 'pnpm'];
|
||||||
|
|
||||||
const ERROR_MESSAGES = {
|
const ERROR_MESSAGES = {
|
||||||
unsupportedOs(value) {
|
unsupportedOs(value) {
|
||||||
return formatMessage(`
|
return formatMessage(`
|
||||||
|
Loading…
Reference in New Issue
Block a user