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.
|
- #!/usr/bin/env bash
-
- if [ ! -f readme.md ]; then
- echo "You seems to be in the wrong directory"
- echo "Execute this script from the root of lesspass with ./scripts/build-lesspass-pure.sh"
- exit 1
- fi
-
- if [ -z $1 ]; then
- echo "Oops, you need to set a version in major.minor.patch"
- echo "Example:"
- echo "$0 patch"
- exit 1
- fi
-
- cd pure
- npm version $1
- TAG_NAME="$(git describe --abbrev=0 --tags)"
-
- npm run build
- git add .
- git commit --amend --no-edit
- git tag -d $TAG_NAME
- git tag $TAG_NAME
-
- git push --tags origin master
- npm publish
- cd ..
|