From bd3e31f598f5badaccf011f701d94bbb9e6b6b31 Mon Sep 17 00:00:00 2001 From: Conor O'Brien Date: Fri, 13 Dec 2024 08:42:44 +0000 Subject: [PATCH] feat(core): Detect Railway release name (#639) --- packages/bundler-plugin-core/src/utils.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/bundler-plugin-core/src/utils.ts b/packages/bundler-plugin-core/src/utils.ts index 55a747fe..6e7a09b4 100644 --- a/packages/bundler-plugin-core/src/utils.ts +++ b/packages/bundler-plugin-core/src/utils.ts @@ -259,6 +259,8 @@ export function determineReleaseName(): string | undefined { process.env["HEROKU_TEST_RUN_COMMIT_VERSION"] || // Heroku #2 https://docs.sentry.io/product/integrations/deployment/heroku/#configure-releases process.env["HEROKU_SLUG_COMMIT"] || + // Railway - https://docs.railway.app/reference/variables#git-variables + process.env["RAILWAY_GIT_COMMIT_SHA"] || // Render - https://render.com/docs/environment-variables process.env["RENDER_GIT_COMMIT"] || // Semaphore CI - https://docs.semaphoreci.com/ci-cd-environment/environment-variables