mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-05-20 21:14:45 +00:00
Change node version for action to node20 (#866)
This commit is contained in:
parent
1a4442cacd
commit
54534a2a9b
74 changed files with 22110 additions and 30829 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue