mirror of
https://github.com/actions/setup-node.git
synced 2025-04-24 04:20:49 +00:00
update impl
This commit is contained in:
parent
42d6dff7e7
commit
9a425941d6
2 changed files with 796 additions and 783 deletions
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);
|
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…
Add table
Reference in a new issue