feat: add push script

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
MiaoWoo 2021-03-27 15:29:22 +08:00
parent 293b4e265b
commit d486e2ab19
2 changed files with 7 additions and 1 deletions

View File

@ -12,7 +12,7 @@
"build": "lerna run build --scope=\"@ccms/!(plugins)\"",
"build:plugins": "lerna run build --scope=\"@ccms/plugins\"",
"ug": "yarn upgrade-interactive --latest",
"np": "lerna exec \"npm publish --access=public --registry https://registry.npmjs.org\" --scope=\"@ccms/!(client|plugins)\"",
"np": "./script/push.sh",
"lsp": "npm login --registry=https://registry.npmjs.org --scope=@ccms",
"lp": "lerna publish --registry https://registry.npmjs.org"
},

6
script/push.sh Executable file
View File

@ -0,0 +1,6 @@
for package in `ls packages`; do
echo $package
pushd packages/$package
npm publish --access=public --registry https://registry.npmjs.org
popd
done