File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,17 @@ DOTENV="$REPO/.env"
43
43
44
44
# Set environment variables for the build process
45
45
export GIT_REVISION=$( git rev-parse --short HEAD)
46
+ export REACT_APP_GIT_REVISION=$GIT_REVISION
47
+
48
+ # Compute "development" version from latest tag
49
+ VERSION=" $( git describe --abbrev=0) "
50
+ VERSION_MAJOR=" ${VERSION%% \. * } "
51
+ VERSION_MINOR=" ${VERSION#* .} "
52
+ VERSION_MINOR=" ${VERSION_MINOR% .* } "
53
+ VERSION_PATCH=" ${VERSION##* .} "
54
+ VERSION_PATCH=$(( VERSION_PATCH+ 1 ))
55
+
56
+ export REACT_APP_VERSION_NUMBER=" ${VERSION_MAJOR} .${VERSION_MINOR} .${VERSION_PATCH} -dev"
46
57
47
58
# Load .env file from project root if it exists
48
59
if [ -f $DOTENV ]; then
Original file line number Diff line number Diff line change @@ -139,8 +139,8 @@ services:
139
139
REACT_APP_TENANT_BASE_URL : " http://localhost:8080/v1/"
140
140
REACT_APP_QUARTERDECK_BASE_URL : " http://localhost:8088/v1/"
141
141
REACT_APP_ANALYTICS_ID : ${REACT_APP_ANALYTICS_ID}
142
- REACT_APP_VERSION_NUMBER : v0.7.2-dev
143
- REACT_APP_GIT_REVISION : ${GIT_REVISION }
142
+ REACT_APP_VERSION_NUMBER : ${REACT_APP_VERSION_NUMBER}
143
+ REACT_APP_GIT_REVISION : ${REACT_APP_GIT_REVISION }
144
144
REACT_APP_SENTRY_DSN : ${REACT_APP_SENTRY_DSN}
145
145
REACT_APP_SENTRY_ENVIRONMENT : development
146
146
REACT_APP_USE_DASH_LOCALE : " true"
Original file line number Diff line number Diff line change 1
1
# Displays the build version (tag) and git revision for debugging
2
- REACT_APP_VERSION_NUMBER=v0.7.2 -dev
2
+ REACT_APP_VERSION_NUMBER=v0.9.0 -dev
3
3
REACT_APP_GIT_REVISION=
4
4
5
5
# Specifies connection information for the backend
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " beacon-app" ,
3
- "version" : " 0.7.1 " ,
3
+ "version" : " 0.8.0 " ,
4
4
"description" : " User UI for Ensign." ,
5
5
"main" : " index.js" ,
6
6
"repository" : " https://github.com/rotationalio/ensign" ,
You can’t perform that action at this time.
0 commit comments