mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-10 22:21:11 +00:00
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:
parent
57adacb752
commit
7a3ce83626
7 changed files with 45 additions and 18 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