forked from fanruan/fineui
iapyang
5 years ago
1 changed files with 9 additions and 1 deletions
@ -1,3 +1,11 @@
|
||||
const { execSync } = require("child_process"); |
||||
const { resolve } = require("path"); |
||||
const { writeFileSync } = require("fs"); |
||||
|
||||
execSync(`npm publish --tag 2.0.${new Date().getTime()}`); |
||||
const packageJSON = require("../../package.json"); |
||||
|
||||
packageJSON.version = `2.0.${new Date().getTime()}`; |
||||
|
||||
writeFileSync(resolve(__dirname, "../../package.json"), JSON.stringify(packageJSON, null, 2)); |
||||
|
||||
execSync("npm publish"); |
||||
|
Loading…
Reference in new issue