mirror of
https://github.com/actions/setup-node
synced 2025-05-15 20:37:45 +00:00
Update src/main.ts
Co-authored-by: Steven <steven@ceriously.com>
This commit is contained in:
parent
4ae98e59c8
commit
33605defb6
@ -48,8 +48,8 @@ export async function run() {
|
||||
auth.configAuthentication(registryUrl, alwaysAuth);
|
||||
}
|
||||
|
||||
const enableCorepack = core.getInput('corepack');
|
||||
if (enableCorepack === 'true') {
|
||||
const enableCorepack = core.getBooleanInput('corepack');
|
||||
if (enableCorepack) {
|
||||
await exec.exec('corepack', ['enable']);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user