add before deploy with version

This commit is contained in:
DD 2017-10-16 10:30:29 -04:00
parent 4077fe828c
commit cdac361cc8

View file

@ -17,6 +17,9 @@ install:
before_deploy:
- git config --global user.email $(git log --pretty=format:"%ae" -n1)
- git config --global user.name $(git log --pretty=format:"%an" -n1)
- VPKG=$($(npm bin)/json -f package.json version)
- export VERSION=${VPKG/%?/}$(date +%Y%m%d%H%M%S)
- npm --no-git-tag-version version $VERSION
deploy:
- provider: script
on: