|
|
|
@ -1,8 +1,7 @@
|
|
|
|
|
const { execSync } = require("child_process"); |
|
|
|
|
const { resolve } = require("path"); |
|
|
|
|
const { writeFileSync } = require("fs"); |
|
|
|
|
|
|
|
|
|
if (!process.env.PASSWORD) { |
|
|
|
|
if (!process.env.VERDACCIO_AUTH) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -12,6 +11,4 @@ packageJSON.version = `2.0.${new Date().getTime()}`;
|
|
|
|
|
|
|
|
|
|
writeFileSync(resolve(__dirname, "../../package.json"), JSON.stringify(packageJSON, null, 2)); |
|
|
|
|
|
|
|
|
|
execSync([ |
|
|
|
|
"npm publish --registry http://192.168.5.154:4873/", |
|
|
|
|
].join(" && ")); |
|
|
|
|
writeFileSync(resolve(__dirname, "../../.npmrc"), `//192.168.5.154:4873/:_authToken="${process.env.VERDACCIO_AUTH}"`); |