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

Feature request: @scope input should default to the scope specified in package.json #128

Open
jasonkarns opened this issue Mar 29, 2020 · 1 comment
Labels

Comments

@jasonkarns
Copy link

@jasonkarns jasonkarns commented Mar 29, 2020

As I've used the setup-node action in about a dozen projects now, I've consistently needed to set the scope input for the action. This seems redundant because this information is already present in the package.json in the name.

When this action is used to publish a node module to a registry, the scope must be the same as the one defined in the package's package.json. Information that must change together is precisely the kind of information that should be DRY. So I would hope that the scope input could be defaulted to the scope defined in the package.json automatically.

(The same should be true for the registry, as defined in package.json#publishConfig)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
@jasonkarns @bryanmacfarlane and others
You can’t perform that action at this time.