Skip to content

Commit e0d4560

Browse files
committed
test: enable ci release on feature branch as rc version
1 parent bf633f1 commit e0d4560

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches:
66
- main
7+
# TESTING: Uncomment the line below to allow releases from the current branch
8+
# This makes it easy to test semantic release on any branch.
9+
# To disable, comment out this line.
10+
- semantic-release
711
workflow_dispatch:
812
inputs:
913
dry_run:

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,14 @@ match = "(main|master)"
137137
prerelease_token = ""
138138
prerelease = false
139139

140+
# TESTING: Uncomment the section below to allow releases from the current branch
141+
# This makes it easy to test semantic release on any branch.
142+
# To disable, comment out this entire section.
143+
[tool.semantic_release.branches.test]
144+
match = ".*" # Matches any branch name
145+
prerelease_token = "rc"
146+
prerelease = true
147+
140148
[tool.semantic_release.branches.pre_release]
141149
match = "(pre-.*|beta.*|alpha.*)"
142150
prerelease_token = "rc"

0 commit comments

Comments
 (0)