mirror of
https://github.com/actions/setup-node.git
synced 2025-12-15 17:31:39 +08:00
minor fix
This commit is contained in:
@@ -22,10 +22,14 @@ export default class NightlyNodejs extends BaseDistribution {
|
||||
);
|
||||
|
||||
for (let i = versions.length - 1; i >= 0; i--) {
|
||||
const potential: string = versions[i].replace('nightly', 'nightly.');
|
||||
const satisfied: boolean = semver.satisfies(potential, range, {
|
||||
includePrerelease: includePrerelease
|
||||
});
|
||||
const potential: string = versions[i];
|
||||
const satisfied: boolean = semver.satisfies(
|
||||
potential.replace('nightly', 'nightly.'),
|
||||
range,
|
||||
{
|
||||
includePrerelease: includePrerelease
|
||||
}
|
||||
);
|
||||
if (satisfied) {
|
||||
version = potential;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user