Skip to content

Instantly share code, notes, and snippets.

@tcelestino
Last active October 29, 2020 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tcelestino/67e93a61f480b36abf5bd4383c933456 to your computer and use it in GitHub Desktop.
Save tcelestino/67e93a61f480b36abf5bd4383c933456 to your computer and use it in GitHub Desktop.
using .nvmrc in node-version on gh action workflow
# 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