25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/usr/bin/env bash
-
- # context verification
- if [ ! -f README.md ]; then
- echo "You seems to be in the wrong directory"
- echo "Execute this script from the root of LessPass with ./scripts/${0##*/}"
- exit 1
- fi
- if [ -z $1 ]; then
- echo "Oops, you need to set a version in major.minor.patch"
- echo "Example:"
- echo "$0 patch"
- exit 1
- fi
- bash ./scripts/check-status.sh
- if [ "$?" == "1" ];then exit 1;fi
- # verification completed
-
-
- cd pure
- npm version $1
- TAG_NAME="$(git describe --abbrev=0 --tags)"
-
- npm run build
- git add .
- git commit --amend --no-edit
- git tag -d $TAG_NAME
- git tag $TAG_NAME
-
- git push --tags origin master
- npm publish
- cd ..
|