您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

30 行
650 B

  1. #!/usr/bin/env bash
  2. # context verification
  3. if [ ! -f README.md ]; then
  4. echo "You seems to be in the wrong directory"
  5. echo "Execute this script from the root of LessPass with ./scripts/${0##*/}"
  6. exit 1
  7. fi
  8. if [ -z $1 ]; then
  9. echo "Oops, you need to set a version in major.minor.patch"
  10. echo "Example:"
  11. echo "$0 patch"
  12. exit 1
  13. fi
  14. bash ./scripts/check-status.sh
  15. if [ "$?" == "1" ];then exit 1;fi
  16. # verification completed
  17. cd webextension
  18. npm version $1
  19. TAG_NAME="$(git describe --abbrev=0 --tags)"
  20. git add .
  21. git commit --amend --no-edit
  22. git tag -d $TAG_NAME
  23. git tag $TAG_NAME
  24. npm run build
  25. git push --tags origin master
  26. cd ..