Files
element-plus/scripts/publish.sh
jeremywu 97e8848617 build(project): feat/release-automation (#1094)
- Add publish.sh for automated publishing
2020-12-23 15:59:58 +08:00

11 lines
469 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.
WORKING_PATH="../$(dirname $0)"
cd $WORKING_PATH
cat package.json | grep -v '"private":' | grep -v '"version":' | sed "s/\(\"name\": \"@element-plus\/icons\"\)/\1,\n \"version\": \"${TAG_VERSION}\"/g" > package.json
npm publish --registry ${REGISTRY} --access public