mirror of
https://github.com/actions/setup-node.git
synced 2025-07-04 08:33:47 +00:00
syncing with main
This commit is contained in:
parent
36bb47b5a0
commit
34ece939a3
2 changed files with 18 additions and 16 deletions
|
@ -82,14 +82,14 @@ function resolveVersionInput(): string {
|
|||
const versionFileInput = core.getInput('node-version-file');
|
||||
if (versionFileInput) {
|
||||
const versionFilePath = path.join(
|
||||
process.env.GITHUB_WORKSPACE!,
|
||||
versionFileInput
|
||||
process.env.GITHUB_WORKSPACE!,
|
||||
versionFileInput
|
||||
);
|
||||
version = installer.parseNodeVersionFile(
|
||||
fs.readFileSync(versionFilePath, 'utf8')
|
||||
fs.readFileSync(versionFilePath, 'utf8')
|
||||
);
|
||||
core.info(`Resolved ${versionFileInput} as ${version}`);
|
||||
}
|
||||
|
||||
return version;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue