chore: remove version prefix for IA (#9488)

This commit is contained in:
jrandolf 2023-01-11 14:09:45 +01:00 committed by GitHub
parent 000ad18792
commit 305183c330
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,17 +14,6 @@ import {
import core from '@actions/core';
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 => {
return values
.map(value => {
@ -39,6 +28,19 @@ const removeVersionPrefix = 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 = {
unsupportedOs(value) {
return formatMessage(`