diff --git a/scripts/publish.sh b/scripts/publish.sh index a4e237b9e5..75d5d4b037 100644 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -3,6 +3,6 @@ # Do not run this file without setting the environment variables, you will end up fatal error # If you wish to run this locally, please change the env variable before running this. -cat package.json | grep -v '"private":' | grep -v '"version":' | sed "s/\(\"name\": \"element-plus\"\)/\1,\n \"version\": \"${TAG_VERSION}\"/g" > package.json - +cat package.json | grep -v '"private":' | grep -v '"version":' | sed "s/\(\"name\": \"element-plus\"\)/\1,\n \"version\": \"${TAG_VERSION}\"/g" > package.json.bak +cat package.json.bak > package.json npm publish --registry ${REGISTRY} --access public