Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save adrienjoly/625d87850eef2551c704ee15466cf4f4 to your computer and use it in GitHub Desktop.
Save adrienjoly/625d87850eef2551c704ee15466cf4f4 to your computer and use it in GitHub Desktop.
Use the expected version of Node.js on GitHub Actions, based on the project's .nvmrc file
steps:
- uses: browniebroke/read-nvmrc-action@v1 # Read node version from `.nvmrc` file
id: nvmrc
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: '${{ steps.nvmrc.outputs.node_version }}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment