mirror of
https://github.com/actions/setup-node.git
synced 2025-12-26 18:23:38 +00:00
minor fix
This commit is contained in:
parent
363785e8f4
commit
68fd79d662
3 changed files with 4 additions and 10 deletions
|
|
@ -43,10 +43,7 @@ export default class NightlyNodejs extends BaseDistribution {
|
|||
const rawVersion = (isValidVersion ? raw : semver.coerce(raw))!;
|
||||
|
||||
if (prerelease !== this.distribution) {
|
||||
range = `${rawVersion}-${prerelease.replace(
|
||||
this.distribution,
|
||||
`${this.distribution}.`
|
||||
)}`;
|
||||
range = versionSpec;
|
||||
} else {
|
||||
range = `${semver.validRange(`^${rawVersion}-${this.distribution}`)}-0`;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -43,10 +43,7 @@ export default class CanaryBuild extends BaseDistribution {
|
|||
const rawVersion = (isValidVersion ? raw : semver.coerce(raw))!;
|
||||
|
||||
if (prerelease !== this.distribution) {
|
||||
range = `${rawVersion}-${prerelease.replace(
|
||||
this.distribution,
|
||||
`${this.distribution}.`
|
||||
)}`;
|
||||
range = versionSpec;
|
||||
} else {
|
||||
range = `${semver.validRange(`^${rawVersion}-${this.distribution}`)}-0`;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue