mirror of
https://github.com/actions/setup-node
synced 2025-04-17 13:43:12 +00:00
feat: remove package manager name check as it will be done by corepack anyway
This commit is contained in:
parent
c7d2f5b707
commit
0565a4fc0a
@ -611,11 +611,6 @@ export async function enableCorepack(input: string): Promise<void> {
|
||||
if (input.length > 0 && input !== 'false') {
|
||||
if (input !== 'true') {
|
||||
const packageManagers = input.split(' ');
|
||||
if (!packageManagers.every(pm => ['npm', 'yarn', 'pnpm'].includes(pm))) {
|
||||
throw new Error(
|
||||
`One or more of the specified package managers [ ${input} ] are not supported by corepack`
|
||||
);
|
||||
}
|
||||
corepackArgs.push(...packageManagers);
|
||||
}
|
||||
await exec.getExecOutput('corepack', corepackArgs, {
|
||||
|
Loading…
Reference in New Issue
Block a user