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
Install standard version of Node.js in "Check Website" workflow
The "Check Website" workflow invokes the following chain of tasks:
1. `website:check`
2. `docs:generate`
3. `general:format-prettier`
This makes the Prettier tool a dependency of the workflow, which in turn introduces a dependency on npm, and thus on
Node.js.
Previously, the workflow didn't contain a step to run the "actions/setup-node" action, so it used whichever version of
npm happened to be installed in the runner machine, which happens to be 18.x currently. Now that the use of the
project's standard Node.js version 20.x is enforced, this caused the workflow to fail spuriously:
```
task: [npm:install-deps] npm install
npm error code EBADENGINE
npm error engine Unsupported engine
npm error engine Not compatible with your version of node/npm: undefined
npm error notsup Not compatible with your version of node/npm: undefined
npm error notsup Required: {"node":"20.x"}
npm error notsup Actual: {"npm":"10.7.0","node":"v18.20.4"}
```
The problem is solved by adding an "actions/setup-node" action step to the workflow to install the correct version of
Node.js.
0 commit comments