mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-05-19 21:04:45 +00:00
chore: run prettier
This commit is contained in:
parent
5b579f1638
commit
bb59d50268
2 changed files with 4 additions and 5 deletions
|
@ -504,7 +504,7 @@ export function parseNodeVersionFile(contents: string): string {
|
|||
try {
|
||||
// Try parsing the file as an NPM `package.json` file.
|
||||
nodeVersion = JSON.parse(contents).volta?.node;
|
||||
if (!nodeVersion)nodeVersion = JSON.parse(contents).engines?.node;
|
||||
if (!nodeVersion) nodeVersion = JSON.parse(contents).engines?.node;
|
||||
if (!nodeVersion) throw new Error();
|
||||
} catch (err) {
|
||||
// In the case of an unknown format,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue