Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#1] Support working-directory param in setup-node action #2

Merged
merged 1 commit into from
Aug 23, 2023

Conversation

SilviaAmAm
Copy link
Contributor

@SilviaAmAm SilviaAmAm commented Aug 22, 2023

Fixes #1

There is an issue in the setup-node action to be able to specify the working dir: actions/setup-node#706

action.yml Outdated
@@ -107,7 +107,7 @@ runs:
- uses: actions/setup-node@v3
if: ${{ inputs.setup-node == 'yes' }}
with:
node-version-file: '.nvmrc'
node-version-file: ${{ inputs.working-dir && join([inputs.working_dir, '.nvmrc'], '/') || '.nvmrc' }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SilviaAmAm SilviaAmAm marked this pull request as draft August 22, 2023 12:06
@SilviaAmAm SilviaAmAm marked this pull request as ready for review August 22, 2023 12:43
@SilviaAmAm SilviaAmAm merged commit 27cf373 into main Aug 23, 2023
@sergei-maertens sergei-maertens deleted the fix/1-missing-working-dir branch April 11, 2024 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.nvmrc of setup-node action doesn't take working-directory into account
2 participants