mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-27 03:01:14 +08:00
14 lines
518 B
Bash
14 lines
518 B
Bash
#! /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.
|
|
# echo "//${REGISTRY}/:_authToken=${TOKEN}" > .npmrc
|
|
|
|
cat package.json \
|
|
| grep -v '"private":' \
|
|
| grep -v '"version":' \
|
|
| sed "s/\(\"name\": \"element-plus\"\)/\"name\": \"${PKG_NAME}\",\n \"version\": \"${TAG_VERSION}\"/g" > package.json.bak
|
|
|
|
cat package.json.bak > package.json
|
|
npm publish --registry ${REGISTRY}
|