mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 01:23:34 +00:00 
			
		
		
		
	testing: add debug lines
This commit is contained in:
		
							parent
							
								
									ccb6d0562b
								
							
						
					
					
						commit
						4a77f694db
					
				
							
								
								
									
										2
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							@ -73413,6 +73413,8 @@ function resolveVersionFromManifest(versionSpec, stable, auth, osArch = translat
 | 
			
		||||
function evaluateVersions(versions, versionSpec) {
 | 
			
		||||
    let version = '';
 | 
			
		||||
    core.debug(`evaluating ${versions.length} versions`);
 | 
			
		||||
    core.debug(`version 1 is ${versions[0]}`);
 | 
			
		||||
    core.debug(`version spec is ${versionSpec}`);
 | 
			
		||||
    versions = versions.map(item => item.replace('nightly', 'nightly.')).sort((a, b) => {
 | 
			
		||||
        if (semver.gt(a, b)) {
 | 
			
		||||
            return 1;
 | 
			
		||||
 | 
			
		||||
@ -350,6 +350,8 @@ async function resolveVersionFromManifest(
 | 
			
		||||
function evaluateVersions(versions: string[], versionSpec: string): string {
 | 
			
		||||
  let version = '';
 | 
			
		||||
  core.debug(`evaluating ${versions.length} versions`);
 | 
			
		||||
  core.debug(`version 1 is ${versions[0]}`);
 | 
			
		||||
  core.debug(`version spec is ${versionSpec}`);
 | 
			
		||||
  versions = versions.map(item => item.replace('nightly', 'nightly.')).sort((a, b) => {
 | 
			
		||||
    if (semver.gt(a, b)) {
 | 
			
		||||
      return 1;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user