mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 13:29:12 +08:00 
			
		
		
		
	run build
This commit is contained in:
		
							
								
								
									
										6
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							@@ -62591,6 +62591,12 @@ function queryDistForMatch(versionSpec, arch = os.arch()) {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
        let versions = [];
 | 
					        let versions = [];
 | 
				
			||||||
        let nodeVersions = yield getVersionsFromDist();
 | 
					        let nodeVersions = yield getVersionsFromDist();
 | 
				
			||||||
 | 
					        if (versionSpec === 'current' ||
 | 
				
			||||||
 | 
					            versionSpec === 'latest' ||
 | 
				
			||||||
 | 
					            versionSpec === 'node') {
 | 
				
			||||||
 | 
					            core.info(`getting latest node version...`);
 | 
				
			||||||
 | 
					            return nodeVersions[0].version;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
        nodeVersions.forEach((nodeVersion) => {
 | 
					        nodeVersions.forEach((nodeVersion) => {
 | 
				
			||||||
            // ensure this version supports your os and platform
 | 
					            // ensure this version supports your os and platform
 | 
				
			||||||
            if (nodeVersion.files.indexOf(dataFileName) >= 0) {
 | 
					            if (nodeVersion.files.indexOf(dataFileName) >= 0) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user