In an action.yml for a JavaScript action, which 'runs.using' value specifies Node.js 20?
Select an answer to reveal the explanation.
Short Explanation and Infographic
GitHub Actions uses 'node20' (no dot, no period) as the using value — each Node.js LTS version gets its own identifier.
Full explanation below image
Full Explanation
JavaScript actions in action.yml specify the Node.js version with 'runs: using: node20' (or node16 for the previous LTS, which is deprecated). The format is 'nodeXX' where XX is the major version number — no dot, no period, no 'js' suffix. 'javascript', 'node', and 'nodejs20' are not valid values. GitHub provides the Node.js runtime — action authors don't bundle Node.js itself. Node.js 16 was deprecated in September 2023. The 'main:' field under 'runs' points to the compiled JavaScript entry point (often 'dist/index.js' for bundled actions).