2020-12-23 15:59:58 +08:00
|
|
|
#! /usr/bin/bash
|
|
|
|
|
|
|
|
# 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.
|
2020-12-27 14:16:18 +08:00
|
|
|
# echo "//${REGISTRY}/:_authToken=${TOKEN}" > .npmrc
|
|
|
|
|
|
|
|
cat package.json \
|
|
|
|
| grep -v '"private":' \
|
|
|
|
| grep -v '"version":' \
|
2020-12-27 18:05:32 +08:00
|
|
|
| sed "s/\(\"name\": \"element-plus\"\)/\1,\n \"version\": \"${TAG_VERSION}\"/g" > package.json.bak
|
2020-12-23 15:59:58 +08:00
|
|
|
|
2020-12-23 22:50:04 +08:00
|
|
|
cat package.json.bak > package.json
|
2020-12-27 14:16:18 +08:00
|
|
|
npm publish --registry ${REGISTRY}
|