update impl

This commit is contained in:
Adam 2022-10-07 20:47:06 +02:00
parent 42d6dff7e7
commit 9a425941d6
2 changed files with 796 additions and 783 deletions

1568
dist/setup/index.js vendored

File diff suppressed because it is too large Load diff

View file

@ -48,9 +48,14 @@ export async function run() {
auth.configAuthentication(registryUrl, alwaysAuth);
}
const enableCorepack = core.getBooleanInput('corepack');
if (enableCorepack) {
await exec.exec('corepack', ['enable']);
const enableCorepack = core.getInput('corepack');
if (enableCorepack !== 'false') {
const args = ['enable'];
if (enableCorepack !== 'true') {
args.push(...enableCorepack.split(' '));
}
await exec.exec('corepack', args);
}
if (cache && isCacheFeatureAvailable()) {