From c312e261b68c6f8276d1794296be16f2a916f81c Mon Sep 17 00:00:00 2001 From: Manuel <5673677+mtrezza@users.noreply.github.com> Date: Sat, 19 Nov 2022 17:37:15 +0100 Subject: [PATCH] ci: Add auto-release LTS branch detection (#8326) --- release.config.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/release.config.js b/release.config.js index f6bc9f62..b3776e23 100644 --- a/release.config.js +++ b/release.config.js @@ -24,7 +24,7 @@ const templates = { async function config() { // Get branch - const branch = ref.split('/').pop(); + const branch = ref.split('/').pop().split('-')[0]; console.log(`Running on branch: ${branch}`); // Set changelog file @@ -36,10 +36,12 @@ async function config() { const config = { branches: [ - 'release(-[0-9]+\.x\.x)?', + 'release', { name: 'alpha', prerelease: true }, { name: 'beta', prerelease: true }, 'next-major', + // Long-Term-Support branches; defined as GLOB pattern + 'release-+([0-9]).x.x', ], dryRun: false, debug: true,