async function stepFour()

in tools/version.js [17:34]


async function stepFour() {
  const json = readJSONSync(VERSION_FILE);
  const current = {
    versionLabel: version,
    docUrl: `/docs/${version}/about`,
    downloadUrl: `https://github.com/apache/seatunnel/releases/tag/${version}`,
    sourceTag: version,
  };
  json.en.table.latestData = [current];
  json.en.table.historyData = [current, ...json.en.table.historyData];

  json["zh-CN"].table.latestData = [current];
  json["zh-CN"].table.historyData = [
    current,
    ...json["zh-CN"].table.historyData,
  ];
  writeJSONSync(VERSION_FILE, json, { spaces: 2 });
}