Change node version for action to node20 (#866)

This commit is contained in:
Dmitry Shibanov 2023-10-23 15:20:20 +02:00 committed by GitHub
parent 1a4442cacd
commit 54534a2a9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
74 changed files with 22110 additions and 30829 deletions

View file

@ -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);

View file

@ -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;