renovate/tools/static-data/generate-node-schedule.mjs
Michael Kriese 59dc8f64ba
build: add node schedule updater (#17181)
* build: add node schedule updater

* ci: update generation job
2022-08-15 12:18:51 +02:00

12 lines
355 B
JavaScript

import got from 'got';
import shell from 'shelljs';
import { updateJsonFile } from './utils.mjs';
const dataUrl =
'https://raw.githubusercontent.com/nodejs/LTS/HEAD/schedule.json';
await (async () => {
shell.echo('Generating node schedule');
const { body } = await got(dataUrl);
await updateJsonFile('./data/node-js-schedule.json', body);
})();