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.
 
 
 
 
 
 

29 lines
557 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/build-lesspass-pure.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 pure
  14. npm version $1
  15. TAG_NAME="$(git describe --abbrev=0 --tags)"
  16. npm run build
  17. git add .
  18. git commit --amend --no-edit
  19. git tag -d $TAG_NAME
  20. git tag $TAG_NAME
  21. git push --tags origin master
  22. npm publish
  23. cd ..