From 0842da04583a39c33d3af02e10696724707fdb22 Mon Sep 17 00:00:00 2001 From: DD Date: Mon, 16 Oct 2017 11:01:07 -0400 Subject: [PATCH 1/2] add json dep --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 05d81460..32614651 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,7 @@ "gh-pages": "github:rschamp/gh-pages#publish-branch-to-subfolder", "html-webpack-plugin": "2.30.0", "jest": "^20.0.4", + "json": "^9.0.6", "keymirror": "0.1.1", "lodash.bindall": "4.4.0", "lodash.defaultsdeep": "4.6.0", From 7c84e5b418b92df7fe0f06b66178dec79924a268 Mon Sep 17 00:00:00 2001 From: DD Date: Mon, 16 Oct 2017 11:01:50 -0400 Subject: [PATCH 2/2] Revert "Revert "Add before deploy script that appends version"" This reverts commit 32881a984e7d3949e9f0524af0f75a00353ee6bd. --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index c475eb5f..40a594ff 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,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: