diff --git a/scripts/publish.sh b/scripts/publish.sh index 75d5d4b037..97055e4b1c 100644 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -2,6 +2,7 @@ # 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. +echo "//${REGISTRY}/:_authToken=${TOKEN}" > .npmrc 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