mirror of
https://github.com/actions/setup-node.git
synced 2025-04-03 01:49:34 +08:00
19 lines
474 B
TypeScript
19 lines
474 B
TypeScript
import BasePrereleaseNodejs from '../base-distribution-prerelease';
|
|
import {NodeInputs} from '../base-models';
|
|
|
|
export default class NightlyNodejs extends BasePrereleaseNodejs {
|
|
protected distribution = 'nightly';
|
|
|
|
constructor(nodeInfo: NodeInputs) {
|
|
super(nodeInfo);
|
|
}
|
|
|
|
protected getDistributionUrl(): string {
|
|
if (this.nodeInfo.mirrorURL) {
|
|
return this.nodeInfo.mirrorURL;
|
|
} else {
|
|
return 'https://nodejs.org/download/nightly';
|
|
}
|
|
}
|
|
}
|