mirror of
https://github.com/actions/setup-node.git
synced 2025-07-04 00:24:58 +00:00
fix if check
This commit is contained in:
parent
a4ae07903c
commit
e7c919e11c
2 changed files with 7 additions and 7 deletions
|
@ -428,10 +428,10 @@ function evaluateVersions(versions: string[], versionSpec: string): string {
|
|||
|
||||
function getNodejsDistUrl(version: string) {
|
||||
const prerelease = semver.prerelease(version);
|
||||
if (!prerelease || !prerelease.length) {
|
||||
return 'https://nodejs.org/dist';
|
||||
} else if (version.includes('nightly')) {
|
||||
if (version.includes('nightly')) {
|
||||
return 'https://nodejs.org/download/nightly';
|
||||
} else if (!prerelease) {
|
||||
return 'https://nodejs.org/dist';
|
||||
} else {
|
||||
return 'https://nodejs.org/download/rc';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue