Skip to content

Commit

Permalink
provide a way to change the nvmrc path
Browse files Browse the repository at this point in the history
Signed-off-by: Augustin Husson <[email protected]>
  • Loading branch information
Nexucis committed Jul 15, 2024
1 parent 68e6b54 commit 9a95b93
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion actions/setup_environment/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ inputs:
enable_npm:
description: Whether to enable npm specific features, such as caching.
default: "false"
nvmrc_path:
description: Path to the nvmrc file that contain the node version
default: ""
runs:
using: composite
steps:
Expand All @@ -36,7 +39,7 @@ runs:
uses: actions/setup-node@v4
if: inputs.enable_npm == 'true'
with:
node-version-file: "ui/.nvmrc"
node-version-file: "${{ nvmrc_path }}.nvmrc"
registry-url: "https://registry.npmjs.org"
- uses: actions/[email protected]
if: inputs.enable_npm == 'true'
Expand Down

0 comments on commit 9a95b93

Please sign in to comment.