X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1514f6a2ae8103f75f08034299115ad751d8a785..b2fcdb2fac8ba49fecca5c30fc56e63b71746cf3:/src/common/app-info.ts diff --git a/src/common/app-info.ts b/src/common/app-info.ts index cd27483568..a6e3af744d 100644 --- a/src/common/app-info.ts +++ b/src/common/app-info.ts @@ -3,7 +3,11 @@ // SPDX-License-Identifier: AGPL-3.0 export const getBuildInfo = (): string => { - const getBuildNumber = "BN-" + (process.env.REACT_APP_BUILD_NUMBER || "dev"); - const getGitCommit = "GIT-" + (process.env.REACT_APP_GIT_COMMIT || "latest").substr(0, 7); - return getBuildNumber + " / " + getGitCommit; -}; \ No newline at end of file + if (process.env.REACT_APP_VERSION) { + return "v" + process.env.REACT_APP_VERSION; + } else { + const getBuildNumber = "BN-" + (process.env.REACT_APP_BUILD_NUMBER || "dev"); + const getGitCommit = "GIT-" + (process.env.REACT_APP_GIT_COMMIT || "latest").substring(0, 7); + return getBuildNumber + " / " + getGitCommit; + } +};