Determines node version via nodenv local and sets it as an output for use in subsequent steps.
steps:
- id: nodenv
uses: nodenv/actions/node-version
- run: echo ${{ steps.nodenv.outputs.node-version }}Example demonstrating combined use with GitHub's own setup-node action:
steps:
- uses: nodenv/actions/node-version
id: nodenv
- uses: actions/setup-node@v1
with:
node-version: '${{ steps.nodenv.outputs.node-version }}'
- run: node -vThis action is maintained within the nodenv/actions monorepo, but released through its own repository (in order to be listed in the GitHub Marketplace). You may reference either one in your workflows:
# pulls from the monorepo
- uses: nodenv/actions/node-version
# pulls from the release repo
- uses: nodenv/actions-node-versionIssues and Pull Requests should be opened in the monorepo, please!