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:
David J. Felix 2019-08-28 20:03:12 -04:00
parent 7af5963081
commit 9c950f557c
5 changed files with 33 additions and 10 deletions

View file

@ -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');