Skip to content

Commit b417bb6

Browse files
committed
feat(ci): configure release workflows for 4.2.0 minor version bump
- Update alpha/beta workflows to bump minor version (4.1.1 → 4.2.0) - Configure progressive release cycle: 4.2.0a1 → 4.2.0b1 → 4.2.0 - Update documentation examples to reflect 4.2.0 target - Enable testing of release infrastructure before Friday 4.2.0 release
1 parent eb242eb commit b417bb6

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/beta-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,13 @@ jobs:
104104
BASE_VERSION=$(echo $CURRENT_VERSION | cut -d'a' -f1)
105105
BETA_VERSION="${BASE_VERSION}b1"
106106
else
107-
# If stable, bump patch and add beta
107+
# If stable, bump minor and add beta (4.1.1 -> 4.2.0)
108108
BASE_VERSION=$(python -c "
109109
import re
110110
version = '$CURRENT_VERSION'
111111
parts = version.split('.')
112-
parts[2] = str(int(parts[2]) + 1)
112+
parts[1] = str(int(parts[1]) + 1)
113+
parts[2] = '0'
113114
print('.'.join(parts))
114115
")
115116
BETA_VERSION="${BASE_VERSION}b1"

.github/workflows/nightly-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,13 @@ jobs:
9898
if [[ $CURRENT_VERSION == *"alpha"* ]]; then
9999
BASE_VERSION=$(echo $CURRENT_VERSION | cut -d'a' -f1)
100100
else
101-
# Bump patch version for alpha
101+
# Bump minor version for alpha (4.1.1 -> 4.2.0)
102102
BASE_VERSION=$(python -c "
103103
import re
104104
version = '$CURRENT_VERSION'
105105
parts = version.split('.')
106-
parts[2] = str(int(parts[2]) + 1)
106+
parts[1] = str(int(parts[1]) + 1)
107+
parts[2] = '0'
107108
print('.'.join(parts))
108109
")
109110
fi

0 commit comments

Comments
 (0)