mirror of
				https://github.com/actions/setup-node.git
				synced 2025-10-31 16:14:00 +08:00 
			
		
		
		
	Change node version for action to node20 (#866)
This commit is contained in:
		| @@ -16,12 +16,12 @@ export default abstract class BasePrereleaseNodejs extends BaseDistribution { | ||||
|     const localVersionPaths = tc | ||||
|       .findAllVersions('node', this.nodeInfo.arch) | ||||
|       .filter(i => { | ||||
|         const prerelease = semver.prerelease(i); | ||||
|         const prerelease = semver.prerelease(i, {}); | ||||
|         if (!prerelease) { | ||||
|           return false; | ||||
|         } | ||||
|  | ||||
|         return prerelease[0].includes(this.distribution); | ||||
|         return prerelease[0].toString().includes(this.distribution); | ||||
|       }); | ||||
|     localVersionPaths.sort(semver.rcompare); | ||||
|     const localVersion = this.evaluateVersions(localVersionPaths); | ||||
|   | ||||
| @@ -153,7 +153,7 @@ export default abstract class BaseDistribution { | ||||
|   } | ||||
|  | ||||
|   protected validRange(versionSpec: string) { | ||||
|     let options: semver.Options | undefined; | ||||
|     let options: semver.RangeOptions | undefined; | ||||
|     const c = semver.clean(versionSpec) || ''; | ||||
|     const valid = semver.valid(c) ?? versionSpec; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Dmitry Shibanov
					Dmitry Shibanov