Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: replace environment variables with package.json entries #287

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jbergstroem
Copy link
Member

@jbergstroem jbergstroem commented Sep 5, 2024

Warning

This is a work in progress. Do not merge.

According to actions/node-setup, it will read manifest.engine values to decide what node version to use.
Second, the lockfile path is only relevant if it is non-default.

Refs: https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#node-version-file


Todo

  • investigate why its still on 18: ##[debug]Set output node-version = v18.20.4

According to `actions/node-setup`, it will read `manifest.engine` values
to decide what node version to use. Second, the lockfile path is only
relevant if it is non-default.
@jbergstroem
Copy link
Member Author

jbergstroem commented Sep 5, 2024

This should really work according to the code. I'm a bit baffled. Also, node 20 should be default by now..

https://github.com/actions/setup-node/blob/main/src/util.ts#L18-L31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants