Skip to content

Commit

Permalink
add node-version-file
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Oct 15, 2022
1 parent d824695 commit dfcb441
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@ description: 'A composite action to setup Node.js project.'
inputs:
node-version:
description: 'Set a Node.js version, e.g. 16.14.2'
default: '16'
required: false
node-version-file:
description: 'File containing the version Spec of the version to use. Examples: .nvmrc, .node-version, .tool-versions'
required: false
runs:
using: "composite"
steps:
- uses: actions/setup-node@v3
with:
node-version: '${{ inputs.node-version }}'
node-version-file: '${{ inputs.node-version-file }}'

- uses: actions/cache@v3
with:
Expand Down

0 comments on commit dfcb441

Please sign in to comment.