Release from master

This commit is contained in:
Danny McCormick 2019-08-21 22:58:23 -04:00
parent 5273d0df9c
commit 8de2f9fcbc
34 changed files with 371 additions and 293 deletions

View file

@ -28,6 +28,9 @@ function writeRegistryToFile(registryUrl, fileLocation) {
if (scope && scope[0] != '@') {
scope = '@' + scope;
}
if (scope) {
scope = scope.toLowerCase();
}
core.debug(`Setting auth in ${fileLocation}`);
let newContents = '';
if (fs.existsSync(fileLocation)) {

View file

@ -103,7 +103,7 @@ function queryLatestMatch(versionSpec) {
}
let versions = [];
let dataUrl = 'https://nodejs.org/dist/index.json';
let rest = new restm.RestClient('vsts-node-tool');
let rest = new restm.RestClient('setup-node');
let nodeVersions = (yield rest.get(dataUrl)).result || [];
nodeVersions.forEach((nodeVersion) => {
// ensure this version supports your os and platform

View file

@ -26,7 +26,10 @@ function run() {
// Version is optional. If supplied, install / use from the tool cache
// If not supplied then task is still used to setup proxy, auth, etc...
//
const version = core.getInput('version');
let version = core.getInput('version');
if (!version) {
version = core.getInput('node-version');
}
if (version) {
// TODO: installer doesn't support proxy
yield installer.getNode(version);