setup-node icon indicating copy to clipboard operation
setup-node copied to clipboard

[request] output paths

Open ReenigneArcher opened this issue 1 year ago • 2 comments

Description: Please add outputs to the action, such as npm-path. The setup-python action does this: https://github.com/actions/setup-python/blob/f677139bbe7f9c59b41e40162b753c062f5d49a3/action.yml#L34

At a minimum, printing the locations to the log would be helpful.

Justification: I need to provide the npm path to CMake and this would make it convenient as it requires a full path.

Are you willing to submit a PR?

Yes, but I'm not familiar with the code base.

ReenigneArcher avatar Aug 23 '24 14:08 ReenigneArcher

Hello @ReenigneArcher 👋, Thank you for this feature request. We will investigate it and get back to you as soon as we have some feedback.

priya-kinthali avatar Aug 23 '24 15:08 priya-kinthali

I would also like this. ~~my user can't even execute node -v after the install as the PATH is not updated apparently...~~

I had the setup and usage in two different jobs, so the PATH was replaced. would still like to see it output for usage in future pipelines

acnicholls avatar Aug 23 '24 22:08 acnicholls