mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
chore: update post-publish script
This commit is contained in:
parent
caf6999408
commit
644b7ecea4
@ -5,12 +5,19 @@ const dayjs = require('dayjs');
|
||||
const inquirer = require('inquirer');
|
||||
const chalk = require('chalk');
|
||||
const { spawnSync } = require('child_process');
|
||||
const packageJson = require('../package.json');
|
||||
|
||||
const SAFE_DAYS_START = 1000 * 60 * 60 * 24 * 15; // 15 days
|
||||
const SAFE_DAYS_DIFF = 1000 * 60 * 60 * 24 * 3; // 3 days not update seems to be stable
|
||||
|
||||
(async function process() {
|
||||
console.log(chalk.cyan('🤖 Post Publish Scripting...\n'));
|
||||
|
||||
if (packageJson.version.startsWith('5.0')) {
|
||||
console.log(chalk.green('🤖 Next version, skipped.'));
|
||||
return;
|
||||
}
|
||||
|
||||
const { time, 'dist-tags': distTags } = await fetch('http://registry.npmjs.org/antd').then(res =>
|
||||
res.json(),
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user