mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 03:28:42 +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);
|
||||
}
|
||||
|
||||
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…
Add table
Reference in a new issue