Cache Step not honouring GITHUB_ACTIONS_RUNNER_FORCED_NODE_VERSION=node16
#1258
Labels
GITHUB_ACTIONS_RUNNER_FORCED_NODE_VERSION=node16
#1258
With the release of Runner v2.310.0 https://github.com/actions/runner/releases/tag/v2.310.0, the default version of Node to use has been changed use
node20
We are using self-hosted runners, running Amazon Linux 2. This changed resulted in the following error in the Github runner service not starting correctly with the following error
To get around this, we set the env var
GITHUB_ACTIONS_RUNNER_FORCED_NODE_VERSION=node16
which allowed the service to start correctly and GitHub actions to be able to run correctly.However, in jobs where we using
actions/cache@v3
to cache node modules, we are receiving the following error:Further inspection of the debug log seems to suggest that it is using the default node version i.e
20
Is there anyway to get the cache action to use a specific version of node, or to honour the node version used by the Actions runner service?
Aplogies if this is not the right place to raise this, was not sure if this belonged here or in the runner repo 🙏🏻
The text was updated successfully, but these errors were encountered: