mirror of
https://github.com/actions/setup-node
synced 2025-04-17 05:33:13 +00:00
16 lines
404 B
TypeScript
16 lines
404 B
TypeScript
import BaseDistribution from '../base-distribution';
|
|
import {NodeInputs} from '../base-models';
|
|
|
|
export default class RcBuild extends BaseDistribution {
|
|
constructor(nodeInfo: NodeInputs) {
|
|
super(nodeInfo);
|
|
}
|
|
protected getDistributionUrl(): string {
|
|
if (this.nodeInfo.mirrorURL) {
|
|
return this.nodeInfo.mirrorURL;
|
|
} else {
|
|
return 'https://nodejs.org/download/rc';
|
|
}
|
|
}
|
|
}
|