mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 09:21:00 +00:00
minor fix
This commit is contained in:
parent
360977cce6
commit
2d741fbf57
3 changed files with 20 additions and 12 deletions
8
dist/setup/index.js
vendored
8
dist/setup/index.js
vendored
|
@ -73486,8 +73486,8 @@ class NightlyNodejs extends base_distribution_1.default {
|
|||
core.debug(`evaluating ${versions.length} versions`);
|
||||
const { includePrerelease, range } = this.createRangePreRelease(this.nodeInfo.versionSpec, '-nightly');
|
||||
for (let i = versions.length - 1; i >= 0; i--) {
|
||||
const potential = versions[i].replace('nightly', 'nightly.');
|
||||
const satisfied = semver_1.default.satisfies(potential, range, {
|
||||
const potential = versions[i];
|
||||
const satisfied = semver_1.default.satisfies(potential.replace('nightly', 'nightly.'), range, {
|
||||
includePrerelease: includePrerelease
|
||||
});
|
||||
if (satisfied) {
|
||||
|
@ -73850,8 +73850,8 @@ class CanaryBuild extends base_distribution_1.default {
|
|||
core.debug(`evaluating ${versions.length} versions`);
|
||||
const { includePrerelease, range } = this.createRangePreRelease(this.nodeInfo.versionSpec, '-v8-canary');
|
||||
for (let i = versions.length - 1; i >= 0; i--) {
|
||||
const potential = versions[i].replace('v8-canary', 'v8-canary.');
|
||||
const satisfied = semver_1.default.satisfies(potential, range, {
|
||||
const potential = versions[i];
|
||||
const satisfied = semver_1.default.satisfies(potential.replace('v8-canary', 'v8-canary.'), range, {
|
||||
includePrerelease: includePrerelease
|
||||
});
|
||||
if (satisfied) {
|
||||
|
|
|
@ -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, {
|
||||
const potential: string = versions[i];
|
||||
const satisfied: boolean = semver.satisfies(
|
||||
potential.replace('nightly', 'nightly.'),
|
||||
range,
|
||||
{
|
||||
includePrerelease: includePrerelease
|
||||
});
|
||||
}
|
||||
);
|
||||
if (satisfied) {
|
||||
version = potential;
|
||||
break;
|
||||
|
|
|
@ -18,10 +18,14 @@ export default class CanaryBuild extends BaseDistribution {
|
|||
);
|
||||
|
||||
for (let i = versions.length - 1; i >= 0; i--) {
|
||||
const potential: string = versions[i].replace('v8-canary', 'v8-canary.');
|
||||
const satisfied: boolean = semver.satisfies(potential, range, {
|
||||
const potential: string = versions[i];
|
||||
const satisfied: boolean = semver.satisfies(
|
||||
potential.replace('v8-canary', 'v8-canary.'),
|
||||
range,
|
||||
{
|
||||
includePrerelease: includePrerelease
|
||||
});
|
||||
}
|
||||
);
|
||||
if (satisfied) {
|
||||
version = potential;
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue