How to configure/constrain node version globally? #19564
Unanswered
tmillr
asked this question in
Request Help
Replies: 2 comments
-
|
bump |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
renovate won't bump ranges by default, so simply enable dashboard approval for node major updates and you should be fine. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My package is a custom js gh action (essentially a node/npm/js package in the eyes of renovate), so I think that it's probably easiest/best and most correct to have my pkg restricted to the node major that I've selected in
action.yml(i.e.node16). Additionally, I'd like to ignore updates to theengines.nodefield and manage that manually instead (because, as far as I know, I have a better notion about which versions of node the gh actions runners are currently using than renovate does, and that version is not simply the latest16.x.x). For example, currently the node version that actually gets used whenaction.ymlcontainsnode16appears to bev16.13.0, therefore I'd like to setpackage.json->engines->nodeto^16.13.0and keep it there without renovate requesting me to update it to a later v16, or v18, etc. Keepingengines.nodeat^16.13.0(at least for now) also gives me the benefit of a central location for retrieving/determining the minimum node@16 that I need to be testing on/staying compatible with (for example).So my goals are essentially this:
package.json->engines->nodefield specifically so that I can manage that field manually instead (I'll then probably keep it at^16.13.0manually until node18 becomes available for gh actions and my pkg migrates to node18).package.json->volta->node), I'd like it to be constrained to^16.0.0. So basically, totally independent from goal 1, I want to configure renovate in such a manner that it will never update a recorded node version beyond16.x.x.I've attempted to accomplish this a couple different ways already (by attempting to first constrain the node version to v16 globally), but have only failed. So instead of trying further ideas/techniques and going through further trial and error (i.e. trial commits pushed directly to my master branch), I thought it might be a better idea to just ask here in hopes of getting this dealt with once and for all. Thank you!
My Initial Attempts
tmillr/breaking-change@6226084
tmillr/breaking-change@6a6a01b
Beta Was this translation helpful? Give feedback.
All reactions