actions / actions/setup-node

[request] output paths

Open
#1,122 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
TypeScript
Stars
5k
Forks
1.7k
Avg merge
3d 12h
Merged PRs (30d)
2

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining the setup-node action metadata and implementation, then compare the setup-python action.yml example linked in the issue. The change is complete when the action exposes the requested npm path output or prints the relevant locations to the log, with the behavior verified by the repository's existing checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, node.js, typescript
Domain
ci-cd, devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.