mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 03:28:42 +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);
|
||||
}
|
||||
|
||||
const enableCorepack = core.getInput('corepack');
|
||||
if (enableCorepack === 'true') {
|
||||
const enableCorepack = core.getBooleanInput('corepack');
|
||||
if (enableCorepack) {
|
||||
await exec.exec('corepack', ['enable']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue