選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

31 行
693 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 ..
  27. bash ./scripts/zip-src-for-webextension.sh