element-plus/scripts/publish.sh
2021-09-26 01:29:07 +08:00

17 lines
234 B
Bash
Executable File

#!/bin/sh
set -e
pnpm i
pnpm update:version
pnpm build
find dist/element-plus/packages -type d -name node_modules -print0 | xargs -0 -I {} rm -rf {}
cd dist/element-plus
npm publish --access public
cd -
echo "Publish completed"