Closed PatrickMilroy closed 2 months ago
This issue is stale because it has been open for 200 days with no activity. Leave a comment to avoid closing this issue in 5 days.
This issue was closed because it has been inactive for 5 days since being marked as stale.
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 šš»