mirror of
https://github.com/actions/setup-node.git
synced 2025-04-21 21:30:55 +00:00
minor fix
This commit is contained in:
parent
ee9cdf3888
commit
9b82ea39ef
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
@ -73424,7 +73424,7 @@ function evaluateVersions(versions, versionSpec) {
|
|||||||
});
|
});
|
||||||
for (let i = versions.length - 1; i >= 0; i--) {
|
for (let i = versions.length - 1; i >= 0; i--) {
|
||||||
const potential = versions[i];
|
const potential = versions[i];
|
||||||
const satisfied = semver.satisfies(potential.replace('-nightly', '+nightly.'), versionSpec.replace('-nightly', '+nightly.'));
|
const satisfied = semver.satisfies(potential.replace('-nightly', '+nightly.'), versionSpec.replace('-nightly', '+nightly'));
|
||||||
if (satisfied) {
|
if (satisfied) {
|
||||||
version = potential;
|
version = potential;
|
||||||
break;
|
break;
|
||||||
|
@ -363,7 +363,7 @@ function evaluateVersions(versions: string[], versionSpec: string): string {
|
|||||||
const potential: string = versions[i];
|
const potential: string = versions[i];
|
||||||
const satisfied: boolean = semver.satisfies(
|
const satisfied: boolean = semver.satisfies(
|
||||||
potential.replace('-nightly', '+nightly.'),
|
potential.replace('-nightly', '+nightly.'),
|
||||||
versionSpec.replace('-nightly', '+nightly.')
|
versionSpec.replace('-nightly', '+nightly')
|
||||||
);
|
);
|
||||||
if (satisfied) {
|
if (satisfied) {
|
||||||
version = potential;
|
version = potential;
|
||||||
|
Loading…
Reference in New Issue
Block a user