Last active
October 29, 2020 15:55
-
-
Save tcelestino/67e93a61f480b36abf5bd4383c933456 to your computer and use it in GitHub Desktop.
using .nvmrc in node-version on gh action workflow
This file contains hidden or 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
# https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-output-parameter | |
# https://github.com/actions/setup-node/issues/32 | |
- name: Read .nvmrc | |
run: echo ::set-output name=NVMRC::$(cat .nvmrc) | |
id: nvm | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '${{ steps.nvm.outputs.NVMRC }}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment