mirror of
https://github.com/actions/setup-node
synced 2025-04-20 07:03:11 +00:00
update impl
This commit is contained in:
parent
42d6dff7e7
commit
9a425941d6
1568
dist/setup/index.js
vendored
1568
dist/setup/index.js
vendored
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);
|
||||
}
|
||||
|
||||
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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user