feat: add push script
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
293b4e265b
commit
d486e2ab19
@ -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
6
script/push.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user