mirror of
https://github.com/actions/setup-node.git
synced 2026-07-01 10:51:38 +00:00
Compare commits
2 Commits
32b864b6ab
...
a2dc808bbe
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a2dc808bbe | ||
|
|
d87fa93af3 |
@ -18,7 +18,7 @@ export function getNodeVersionFromFile(versionFilePath: string): string | null {
|
|||||||
const manifest = JSON.parse(contents);
|
const manifest = JSON.parse(contents);
|
||||||
|
|
||||||
// Presume package.json file.
|
// Presume package.json file.
|
||||||
if (typeof manifest === 'object' && manifest !== null) {
|
if (typeof manifest === 'object' && !!manifest) {
|
||||||
// Support Volta.
|
// Support Volta.
|
||||||
// See https://docs.volta.sh/guide/understanding#managing-your-project
|
// See https://docs.volta.sh/guide/understanding#managing-your-project
|
||||||
if (manifest.volta?.node) {
|
if (manifest.volta?.node) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user