X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/84e4588aed7bea1bcf5727ef2eea1a692b4e3bab..dd3d65aa7dea7269352eabe19096cb3dc44eb6c5:/src/common/app-info.ts diff --git a/src/common/app-info.ts b/src/common/app-info.ts index cd27483568..de6708eb63 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").substr(0, 7); + return getBuildNumber + " / " + getGitCommit; + } +};