mirror of
https://github.com/actions/setup-node.git
synced 2025-07-26 08:28:23 +02:00
Add setting for always-auth
- https://docs.npmjs.com/misc/config#always-auth - Allow private repos for stuff like artifactory to work
This commit is contained in:
parent
7af5963081
commit
9c950f557c
5 changed files with 33 additions and 10 deletions
|
@ -35,8 +35,9 @@ function run() {
|
|||
yield installer.getNode(version);
|
||||
}
|
||||
const registryUrl = core.getInput('registry-url');
|
||||
const alwaysAuth = core.getInput('always-auth');
|
||||
if (registryUrl) {
|
||||
auth.configAuthentication(registryUrl);
|
||||
auth.configAuthentication({ registryUrl, alwaysAuth });
|
||||
}
|
||||
// TODO: setup proxy from runner proxy config
|
||||
const matchersPath = path.join(__dirname, '..', '.github');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue