From 62d94559cd4d43787e7ad60e33096f7b6eee795a Mon Sep 17 00:00:00 2001 From: Ray Schamp Date: Thu, 24 May 2018 17:43:47 -0400 Subject: [PATCH] Revert "Only run before_deploy once during deployment" --- .travis.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 87d1cd72e..daac9aad0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,14 +24,9 @@ jobs: node_js: 8 env: NPM_SCRIPT=build before_deploy: - - > - # Only run this once for both deploys (avoids weird double version number) - if ![ "$BEFORE_DEPLOY_RAN" ]; then - export BEFORE_DEPLOY_RAN=1; - npm --no-git-tag-version version $($(npm bin)/json -f package.json version)-prerelease.$(date +%s); - git config --global user.email $(git log --pretty=format:"%ae" -n1); - git config --global user.name $(git log --pretty=format:"%an" -n1); - fi + - npm --no-git-tag-version version $($(npm bin)/json -f package.json version)-prerelease.$(date +%s) + - git config --global user.email $(git log --pretty=format:"%ae" -n1) + - git config --global user.name $(git log --pretty=format:"%an" -n1) deploy: - provider: npm on: