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

29 行
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 ..