Skip to content

Commit

Permalink
chore: remove version prefix for IA (#9488)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrandolf committed Jan 11, 2023
1 parent 000ad18 commit 305183c
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions tools/analyze_issue.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand All @@ -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(`
Expand Down

0 comments on commit 305183c

Please sign in to comment.