Add setting for always-auth (#48)

* Add setting for always-auth

- https://docs.npmjs.com/misc/config#always-auth
- Allow private repos for stuff like artifactory to work

* Fix tests for always-auth
This commit is contained in:
David J. Felix 2019-09-03 10:57:45 -04:00 committed by Danny McCormick
parent 57adacb752
commit 7a3ce83626
7 changed files with 45 additions and 18 deletions

View file

@ -19,8 +19,9 @@ async function run() {
}
const registryUrl: string = core.getInput('registry-url');
const alwaysAuth: string = core.getInput('always-auth');
if (registryUrl) {
auth.configAuthentication(registryUrl);
auth.configAuthentication(registryUrl, alwaysAuth);
}
// TODO: setup proxy from runner proxy config