fineui是帆软报表和BI产品线所使用的前端框架。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
564 B

const { execSync } = require("child_process");
const { resolve } = require("path");
const { writeFileSync } = require("fs");
if (!process.env.PASSWORD) {
return;
}
const packageJSON = require("../../package.json");
packageJSON.version = `2.0.${new Date().getTime()}`;
writeFileSync(resolve(__dirname, "../../package.json"), JSON.stringify(packageJSON, null, 2));
execSync([
`npm-cli-login -u fui -p ${process.env.PASSWORD} -e teller@fanruan.com -r http://192.168.5.154:4873/`,
"npm publish --registry http://192.168.5.154:4873/",
].join(" && "));