mirror of
https://gitea.com/actions/setup-node.git
synced 2025-04-06 15:29:44 +00:00
User agent
This commit is contained in:
@ -100,7 +100,7 @@ async function queryLatestMatch(versionSpec: string): Promise<string> {
|
||||
|
||||
let versions: string[] = [];
|
||||
let dataUrl = 'https://nodejs.org/dist/index.json';
|
||||
let rest: restm.RestClient = new restm.RestClient('vsts-node-tool');
|
||||
let rest: restm.RestClient = new restm.RestClient('setup-node');
|
||||
let nodeVersions: INodeVersion[] =
|
||||
(await rest.get<INodeVersion[]>(dataUrl)).result || [];
|
||||
nodeVersions.forEach((nodeVersion: INodeVersion) => {
|
||||
|
Reference in New Issue
Block a user