You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The entire package.json is used as the "node version" when using node-versions-file #864
There is a message about not finding the node version in the manifest, so it says it'll fallback to downloading node, but it uses the entire package.json as the "node version", rather than an actual semver-style version
Run actions/setup-node@v3
with:
node-version-file: package.json
always-auth: false
check-latest: false
token: ***
Resolved package.json as {}
Attempting to download {}...
Not found in manifest. Falling back to download directly from Node
Error: Unable to find Node version '{}' for platform linux and architecture x64.
Run actions/setup-node@v3
with:
node-version-file: package.json
always-auth: false
check-latest: false
token: ***
Resolved package.json as { "name": "test" }
Attempting to download { "name": "test" }...
Not found in manifest. Falling back to download directly from Node
Error: Unable to find Node version '{ "name": "test" }' for platform linux and architecture x64.
Expected behavior:
ignore node-version-file, since it does not contain a node version, and the entire file itself (which is json) is not a valid version)
Actual behavior:
the entire json file is being used as the version.
Hello @NullVoxPopuli,
Thank you for creating this issue and contributing with a PR, we will take a look and come back to you as soon as we have some news 😃
Activity
Fix actions#864
NullVoxPopuli commentedon Oct 4, 2023
PR to fix here: #865
marko-zivic-93 commentedon Oct 6, 2023
Hello @NullVoxPopuli,
Thank you for creating this issue and contributing with a PR, we will take a look and come back to you as soon as we have some news 😃
Techn1x commentedon Oct 10, 2023
I think the above poster ikjot161290 is a bot, not sure how to report comments on github..
Fix actions#864
Fix actions#864
v-aparnajyothi-y commentedon Dec 19, 2023
Hello @NullVoxPopuli, Released the PR yesterday.
For now I am going to close the issue. If you have any concerns feel free to ping us.
NullVoxPopuli commentedon Dec 19, 2023
Thatk you!
Already using the new version in:
https://github.com/marketplace/actions/all-in-one-setup-node-pnpm-cache