From dfcb44162d1ddac12dd765ea14dd77c9d71b27d7 Mon Sep 17 00:00:00 2001 From: Shohei Ueda <30958501+peaceiris@users.noreply.github.com> Date: Sat, 15 Oct 2022 21:59:06 +0900 Subject: [PATCH] add node-version-file --- setup-node/action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup-node/action.yml b/setup-node/action.yml index 6c4c812..54d611c 100644 --- a/setup-node/action.yml +++ b/setup-node/action.yml @@ -3,7 +3,9 @@ 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" @@ -11,6 +13,7 @@ runs: - uses: actions/setup-node@v3 with: node-version: '${{ inputs.node-version }}' + node-version-file: '${{ inputs.node-version-file }}' - uses: actions/cache@v3 with: