Update src/main.ts

Co-authored-by: Steven <steven@ceriously.com>
This commit is contained in:
Adam Haglund 2022-09-01 15:55:42 +02:00 committed by Adam
parent 4ae98e59c8
commit 33605defb6

View file

@ -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']);
} }