Skip to content

Commit 9dbd134

Browse files
authored
chore: allow semantic-release from main and 1.1.x+ branches (but not 1.0.x) RHIDP-1720 (janus-idp#1514)
Signed-off-by: Nick Boldt <[email protected]>
1 parent be16b4f commit 9dbd134

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
@@ -71,7 +71,10 @@
7171
"testTimeout": 15000
7272
},
7373
"release": {
74-
"branches": "main",
74+
"branches": [
75+
"main",
76+
"[0-9]+.[0-9]+.x"
77+
],
7578
"plugins": [
7679
[
7780
"@semantic-release/commit-analyzer",

0 commit comments

Comments
 (0)