Skip to content

Commit cd144ab

Browse files
ci: add 2.x maintenance release branch
Register 2.x as a semantic-release maintenance branch so the branch list stays in sync with beta and main once alpha merges into beta. 2.x releases publish under the latest dist-tag until 3.0 ships.
1 parent 15182e4 commit cd144ab

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/release.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- beta
77
- main
88
- alpha
9+
- 2.x
910

1011
permissions:
1112
contents: read # for checkout
@@ -48,5 +49,5 @@ jobs:
4849
env:
4950
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5051
run: |
51-
TAG="$(${{ github.ref_name == 'main' }} && echo 'latest' || echo '${{ github.ref_name }}')"
52+
TAG="$(${{ github.ref_name == 'main' || github.ref_name == '2.x' }} && echo 'latest' || echo '${{ github.ref_name }}')"
5253
RELEASE_TAG=$TAG npx semantic-release

‎release.config.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const replacementFiles = [
2525

2626
export default {
2727
branches: [
28+
'2.x',
2829
'main',
2930
{ name: 'beta', prerelease: true },
3031
{ name: 'alpha', prerelease: true },

0 commit comments

Comments
 (0)