Skip to content

Commit a3185e1

Browse files
authored
Add node-version-file input to action.yml
Added input for node version file to specify version from package.json.
1 parent b6a108d commit a3185e1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • action-templates/actions/action-npm-release

action-templates/actions/action-npm-release/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ inputs:
55
node-version:
66
description: "Node version"
77
required: false
8-
default: "22"
8+
node-version-file:
9+
description: "File containing the version Spec of the version to use."
10+
required: false
11+
default: package.json
912
app-path:
1013
description: "Path to package.json file"
1114
required: true
@@ -32,6 +35,7 @@ runs:
3235
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
3336
with:
3437
node-version: "${{ inputs.node-version }}"
38+
node-version-file: ${{inputs.app-path}}/package.json
3539
registry-url: "https://registry.npmjs.org"
3640
cache: "npm"
3741
cache-dependency-path: "./${{inputs.app-path}}/package-lock.json"

0 commit comments

Comments
 (0)