mirror of
https://gitea.com/actions/setup-node.git
synced 2025-09-14 07:38:30 +08:00
minor fix
This commit is contained in:
@@ -22,7 +22,7 @@ export default class NightlyNodejs extends BaseDistribution {
|
||||
);
|
||||
|
||||
for (let i = versions.length - 1; i >= 0; i--) {
|
||||
const potential: string = versions[i];
|
||||
const potential: string = versions[i].replace('nightly', 'nightly.');
|
||||
const satisfied: boolean = semver.satisfies(potential, range, {
|
||||
includePrerelease: includePrerelease
|
||||
});
|
||||
|
@@ -18,7 +18,7 @@ export default class CanaryBuild extends BaseDistribution {
|
||||
);
|
||||
|
||||
for (let i = versions.length - 1; i >= 0; i--) {
|
||||
const potential: string = versions[i];
|
||||
const potential: string = versions[i].replace('v8-canary', 'v8-canary.');
|
||||
const satisfied: boolean = semver.satisfies(potential, range, {
|
||||
includePrerelease: includePrerelease
|
||||
});
|
||||
|
Reference in New Issue
Block a user