X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/1514f6a2ae8103f75f08034299115ad751d8a785..bde7ca868a0c201544476da6c049a98c1188dde9:/src/common/app-info.ts diff --git a/src/common/app-info.ts b/src/common/app-info.ts index cd274835..de6708eb 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; + } +};