mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-14 07:51:11 +00:00
add fix for installer tests
This commit is contained in:
parent
8dfead4556
commit
d465795688
3 changed files with 48 additions and 22 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue