mirror of
https://github.com/actions/setup-node.git
synced 2025-12-15 01:01:38 +08:00
add fix for installer tests
This commit is contained in:
@@ -92,7 +92,7 @@ function resolveVersionInput(): string {
|
||||
process.env.GITHUB_WORKSPACE!,
|
||||
versionFileInput
|
||||
);
|
||||
if (fs.existsSync(versionFilePath) === false) {
|
||||
if (!fs.existsSync(versionFilePath)) {
|
||||
throw new Error('The specified node version file does not exist');
|
||||
}
|
||||
version = installer.parseNodeVersionFile(
|
||||
|
||||
Reference in New Issue
Block a user