mirror of
https://code.forgejo.org/actions/setup-node
synced 2025-07-02 07:56:01 +02:00
18 lines
474 B
TypeScript
18 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';
|
|
}
|
|
}
|
|
}
|