minor fix

This commit is contained in:
Dmitry Shibanov 2022-12-13 12:25:27 +01:00
parent 292688b127
commit 7fc684f251
5 changed files with 8 additions and 8 deletions

View file

@ -21,7 +21,7 @@ export default class NightlyNodejs extends BaseDistribution {
'-nightly'
);
for (let i = versions.length - 1; i >= 0; i--) {
for (let i = 0; i < versions.length; i++) {
const potential: string = versions[i];
const satisfied: boolean = semver.satisfies(
potential.replace('nightly', 'nightly.'),

View file

@ -150,7 +150,7 @@ export default class OfficialBuilds extends BaseDistribution {
core.debug(`evaluating ${versions.length} versions`);
for (let i = versions.length - 1; i >= 0; i--) {
for (let i = 0; i < versions.length; i++) {
const potential: string = versions[i];
const satisfied: boolean = semver.satisfies(
potential,

View file

@ -23,7 +23,7 @@ export default class RcBuild extends BaseDistribution {
const versions = this.filterVersions(nodeVersions);
core.debug(`evaluating ${versions.length} versions`);
for (let i = versions.length - 1; i >= 0; i--) {
for (let i = 0; i < versions.length; i++) {
const potential: string = versions[i];
const satisfied: boolean = semver.satisfies(
potential,

View file

@ -17,7 +17,7 @@ export default class CanaryBuild extends BaseDistribution {
'-v8-canary'
);
for (let i = versions.length - 1; i >= 0; i--) {
for (let i = 0; i < versions.length; i++) {
const potential: string = versions[i];
const satisfied: boolean = semver.satisfies(
potential.replace('v8-canary', 'v8-canary.'),