mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 09:21:00 +00:00
Update src/main.ts
Co-authored-by: Steven <steven@ceriously.com>
This commit is contained in:
parent
4ae98e59c8
commit
33605defb6
1 changed files with 2 additions and 2 deletions
|
@ -48,8 +48,8 @@ export async function run() {
|
||||||
auth.configAuthentication(registryUrl, alwaysAuth);
|
auth.configAuthentication(registryUrl, alwaysAuth);
|
||||||
}
|
}
|
||||||
|
|
||||||
const enableCorepack = core.getInput('corepack');
|
const enableCorepack = core.getBooleanInput('corepack');
|
||||||
if (enableCorepack === 'true') {
|
if (enableCorepack) {
|
||||||
await exec.exec('corepack', ['enable']);
|
await exec.exec('corepack', ['enable']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue