From cdac361cc853d628932c2b2a63bda2299236363e Mon Sep 17 00:00:00 2001 From: DD Date: Mon, 16 Oct 2017 10:30:29 -0400 Subject: [PATCH] add before deploy with version --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 3fba3e4e..c7620f22 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: