mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-12 07:01:12 +00: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
src
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