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

fix userRegistry

parent b0a70336
...@@ -40,11 +40,16 @@ async function release() { ...@@ -40,11 +40,16 @@ async function release() {
if (userRegistry.includes('https://registry.yarnpkg.com/')) { if (userRegistry.includes('https://registry.yarnpkg.com/')) {
printErrorAndExit(`Release failed, please use ${chalk.blue('npm run release')}.`); printErrorAndExit(`Release failed, please use ${chalk.blue('npm run release')}.`);
} }
if (!userRegistry.includes('https://registry.npmjs.org/')) { //https://g.civnet.cn:4873
const registry = chalk.blue('https://registry.npmjs.org/'); // 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}.`); printErrorAndExit(`Release failed, npm registry must be ${registry}.`);
} }
let updated = null; let updated = null;
if (!args.publishOnly) { if (!args.publishOnly) {
......
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