add react_app_version to build script

This commit is contained in:
Mikhail Mikheev 2019-12-18 16:23:48 +04:00
parent 75e3b495f0
commit 65f4d98266
2 changed files with 2 additions and 3 deletions

View File

@ -11,7 +11,6 @@ os:
env: env:
global: global:
- DOCKER_COMPOSE_VERSION=1.22.0 - DOCKER_COMPOSE_VERSION=1.22.0
- REACT_APP_APP_VERSION=$npm_package_version
matrix: matrix:
include: include:
- env: - env:

View File

@ -16,8 +16,8 @@
"test": "test" "test": "test"
}, },
"scripts": { "scripts": {
"build": "node scripts/build.js", "build": "REACT_APP_APP_VERSION=$npm_package_version node scripts/build.js",
"build-mainnet": "REACT_APP_NETWORK=mainnet yarn build", "build-mainnet": "REACT_APP_APP_VERSION=$npm_package_version REACT_APP_NETWORK=mainnet yarn build",
"flow": "flow", "flow": "flow",
"precommit": "./precommit.sh", "precommit": "./precommit.sh",
"start": "node scripts/start.js", "start": "node scripts/start.js",