diff --git a/lib/publish/publish.js b/lib/publish/publish.js index 27280672bf..54687294c4 100644 --- a/lib/publish/publish.js +++ b/lib/publish/publish.js @@ -8,4 +8,4 @@ packageJSON.version = `2.0.${new Date().getTime()}`; writeFileSync(resolve(__dirname, "../../package.json"), JSON.stringify(packageJSON, null, 2)); -execSync("npm publish"); +execSync(`npm publish --registry http://192.168.5.154:4873/:_authToken=${process.env.AUTH}`); diff --git a/package.json b/package.json index 9bce7c28f1..126aaea132 100644 --- a/package.json +++ b/package.json @@ -88,9 +88,6 @@ "fineui", "finebi" ], - "publishConfig": { - "registry": "http://192.168.5.154:4873" - }, "author": "fanruan", "license": "MIT" }