Created
June 26, 2021 15:55
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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