update impl
parent
42d6dff7e7
commit
9a425941d6
File diff suppressed because it is too large
Load Diff
11
src/main.ts
11
src/main.ts
|
|
@ -48,9 +48,14 @@ export async function run() {
|
||||||
auth.configAuthentication(registryUrl, alwaysAuth);
|
auth.configAuthentication(registryUrl, alwaysAuth);
|
||||||
}
|
}
|
||||||
|
|
||||||
const enableCorepack = core.getBooleanInput('corepack');
|
const enableCorepack = core.getInput('corepack');
|
||||||
if (enableCorepack) {
|
if (enableCorepack !== 'false') {
|
||||||
await exec.exec('corepack', ['enable']);
|
const args = ['enable'];
|
||||||
|
if (enableCorepack !== 'true') {
|
||||||
|
args.push(...enableCorepack.split(' '));
|
||||||
|
}
|
||||||
|
|
||||||
|
await exec.exec('corepack', args);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cache && isCacheFeatureAvailable()) {
|
if (cache && isCacheFeatureAvailable()) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue