From 65f4d98266677890762cd3e1b6f9a5c4dce615a1 Mon Sep 17 00:00:00 2001 From: Mikhail Mikheev Date: Wed, 18 Dec 2019 16:23:48 +0400 Subject: [PATCH] add react_app_version to build script --- .travis.yml | 1 - package.json | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 94ca1fc0..06dcb3ca 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,6 @@ os: env: global: - DOCKER_COMPOSE_VERSION=1.22.0 - - REACT_APP_APP_VERSION=$npm_package_version matrix: include: - env: diff --git a/package.json b/package.json index eb492c22..cb237fee 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,8 @@ "test": "test" }, "scripts": { - "build": "node scripts/build.js", - "build-mainnet": "REACT_APP_NETWORK=mainnet yarn build", + "build": "REACT_APP_APP_VERSION=$npm_package_version node scripts/build.js", + "build-mainnet": "REACT_APP_APP_VERSION=$npm_package_version REACT_APP_NETWORK=mainnet yarn build", "flow": "flow", "precommit": "./precommit.sh", "start": "node scripts/start.js",