Using a specific version of NodeJS in Github Actions
If you want to use a specific version of NodeJS in your Github Actions runner image, you don't have to install it yourself, just gotta ask it nicely. Here is how you can do it.
Just add a step that us using the
actions/setup-node to choose the node version and you are good to go
jobs: build: ----snip---- steps: ----snip---- - name: Use Node.js v16 uses: actions/setup-nod[email protected] with: node-version: '16.x'