From 75698ed7e1376934ecda5582fd3e9d3665fe95e1 Mon Sep 17 00:00:00 2001 From: Laurynas Keturakis Date: Thu, 11 May 2023 10:07:32 +0200 Subject: [PATCH] update env variables --- packages/autometrics-lib/src/buildInfo.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/autometrics-lib/src/buildInfo.ts b/packages/autometrics-lib/src/buildInfo.ts index 6db4cc1a..f6cf842c 100644 --- a/packages/autometrics-lib/src/buildInfo.ts +++ b/packages/autometrics-lib/src/buildInfo.ts @@ -27,14 +27,14 @@ function getVersion() { if (process.env.npm_package_version) { return process.env.npm_package_version; } else { - return process.env.PACKAGE_VERSION; + return process.env.PACKAGE_VERSION || process.env.AUTOMETRICS_VERSION; } } function getCommit() { - return process.env.COMMIT_SHA; + return process.env.COMMIT_SHA || process.env.AUTOMETRICS_COMMIT; } function getBranch() { - return process.env.BRANCH_NAME; + return process.env.BRANCH_NAME || process.env.AUTOMETRICS_BRANCH; }