Skip to content

Commit c312e26

Browse files
authored
ci: Add auto-release LTS branch detection (parse-community#8326)
1 parent fe3dc0d commit c312e26

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

release.config.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const templates = {
2424
async function config() {
2525

2626
// Get branch
27-
const branch = ref.split('/').pop();
27+
const branch = ref.split('/').pop().split('-')[0];
2828
console.log(`Running on branch: ${branch}`);
2929

3030
// Set changelog file
@@ -36,10 +36,12 @@ async function config() {
3636

3737
const config = {
3838
branches: [
39-
'release(-[0-9]+\.x\.x)?',
39+
'release',
4040
{ name: 'alpha', prerelease: true },
4141
{ name: 'beta', prerelease: true },
4242
'next-major',
43+
// Long-Term-Support branches; defined as GLOB pattern
44+
'release-+([0-9]).x.x',
4345
],
4446
dryRun: false,
4547
debug: true,

0 commit comments

Comments
 (0)