mirror of
https://github.com/actions/setup-node.git
synced 2025-07-22 06:28:20 +02:00
Merge remote-tracking branch 'upstream/main' into feature/corepack
This commit is contained in:
commit
802542be35
8 changed files with 1825 additions and 1739 deletions
12
src/main.ts
12
src/main.ts
|
@ -112,7 +112,17 @@ function resolveVersionInput(): string {
|
|||
);
|
||||
}
|
||||
|
||||
version = parseNodeVersionFile(fs.readFileSync(versionFilePath, 'utf8'));
|
||||
const parsedVersion = parseNodeVersionFile(
|
||||
fs.readFileSync(versionFilePath, 'utf8')
|
||||
);
|
||||
|
||||
if (parsedVersion) {
|
||||
version = parsedVersion;
|
||||
} else {
|
||||
core.warning(
|
||||
`Could not determine node version from ${versionFilePath}. Falling back`
|
||||
);
|
||||
}
|
||||
|
||||
core.info(`Resolved ${versionFileInput} as ${version}`);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue