Update publish.sh

This commit is contained in:
jeremywu 2020-12-24 00:31:14 +08:00 committed by GitHub
parent a6957dd392
commit 3cc62c7398
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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