You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build-lesspass-pure.sh 656 B

7 jaren geleden
1234567891011121314151617181920212223242526272829303132
  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 pure
  18. npm version $1
  19. TAG_NAME="$(git describe --abbrev=0 --tags)"
  20. npm run build
  21. git add .
  22. git commit --amend --no-edit
  23. git tag -d $TAG_NAME
  24. git tag $TAG_NAME
  25. git push --tags origin master
  26. npm publish
  27. cd ..