element-plus/scripts/publish.sh
jeremywu 139e79b29d
fix(build): release script error (#3576)
- Fix release script error copying node_modules
2021-09-23 08:59:47 +08:00

17 lines
251 B
Bash
Executable File

#!/bin/sh
set -e
pnpm bootstrap
pnpm update:version
sh scripts/build.sh
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"