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.
 
 
 
 
 
 

28 lines
597 B

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