Skip to content

Commit

Permalink
Merge pull request #2 from maykinmedia/fix/1-missing-working-dir
Browse files Browse the repository at this point in the history
[#1] Support working-directory param in setup-node action
  • Loading branch information
SilviaAmAm committed Aug 23, 2023
2 parents 55b5254 + 1515053 commit 27cf373
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ inputs:
required: false
default: 'yes'

nvmrc-custom-dir:
description: Directory within the github.workspace directory where to find the .nvmrc file (for the setup-node action).
required: false
default: ''

npm-ci-flags:
description: Additional arguments for the 'npm ci' command.
required: false
Expand Down Expand Up @@ -107,7 +112,7 @@ runs:
- uses: actions/setup-node@v3
if: ${{ inputs.setup-node == 'yes' }}
with:
node-version-file: '.nvmrc'
node-version-file: ${{ inputs.nvmrc-custom-dir && format('{0}/{1}', inputs.nvmrc-custom-dir, '.nvmrc') || '.nvmrc' }}

- name: Build frontend
if: ${{ inputs.setup-node == 'yes' }}
Expand Down

0 comments on commit 27cf373

Please sign in to comment.