Skip to content

Commit 529591c

Browse files
committed
chore: allow semantic-release from main and 1.1.x+ branches (but not 1.0.x) RHIDP-1720 (#1514)
Signed-off-by: Nick Boldt <[email protected]>
1 parent d02ad5c commit 529591c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/push.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ on:
44
push:
55
branches:
66
- main
7+
# starting from 1.1.x, allow releases from the 1.yy.x branches as long as we remember to bump plugin versions in main immediately after creating a 1.new.x branch
8+
# see this script for how to check which plugins need bumping
9+
# see also root package.json -> .release.branches
10+
- 1.**.x
11+
# do not run on 1.0.x, as we didn't bump plugin versions correctly there
12+
- '!1.0.x'
713

814
concurrency:
915
group: push

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@
7070
"testTimeout": 15000
7171
},
7272
"release": {
73-
"branches": "main",
73+
"branches": [
74+
"main",
75+
"[0-9]+.[0-9]+.x"
76+
],
7477
"plugins": [
7578
[
7679
"@semantic-release/commit-analyzer",

0 commit comments

Comments
 (0)