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

@ -2,6 +2,9 @@ name: 'Setup Node.js environment'
description: 'Setup a Node.js environment and add it to the PATH, additionally providing proxy support'
author: 'GitHub'
inputs:
always-auth:
description: 'Set always-auth in npmrc'
default: 'false'
node-version:
description: 'Version Spec of the version to use. Examples: 10.x, 10.15.1, >=10.15.0'
default: '10.x'