mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 09:21:00 +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
1 changed files with 0 additions and 5 deletions
|
@ -611,11 +611,6 @@ export async function enableCorepack(input: string): Promise<void> {
|
||||||
if (input.length > 0 && input !== 'false') {
|
if (input.length > 0 && input !== 'false') {
|
||||||
if (input !== 'true') {
|
if (input !== 'true') {
|
||||||
const packageManagers = input.split(' ');
|
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);
|
corepackArgs.push(...packageManagers);
|
||||||
}
|
}
|
||||||
await exec.getExecOutput('corepack', corepackArgs, {
|
await exec.getExecOutput('corepack', corepackArgs, {
|
||||||
|
|
Loading…
Add table
Reference in a new issue