Commit 0d994076 authored by 邓晓峰's avatar 邓晓峰

fix userRegistry

parent b0a70336
......@@ -40,11 +40,16 @@ async function release() {
if (userRegistry.includes('https://registry.yarnpkg.com/')) {
printErrorAndExit(`Release failed, please use ${chalk.blue('npm run release')}.`);
}
if (!userRegistry.includes('https://registry.npmjs.org/')) {
const registry = chalk.blue('https://registry.npmjs.org/');
//https://g.civnet.cn:4873
// if (!userRegistry.includes('https://registry.npmjs.org/')) {
// const registry = chalk.blue('https://registry.npmjs.org/');
// printErrorAndExit(`Release failed, npm registry must be ${registry}.`);
// }
if (!userRegistry.includes('https://g.civnet.cn:4873/')) {
const registry = chalk.blue('https://g.civnet.cn:4873/');
printErrorAndExit(`Release failed, npm registry must be ${registry}.`);
}
let updated = null;
if (!args.publishOnly) {
......@@ -140,4 +145,4 @@ async function release() {
release().catch((err) => {
console.error(err);
process.exit(1);
});
\ No newline at end of file
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment