Compare commits

...

3 Commits

Author SHA1 Message Date
Claude
21cac3c6e4 ci: use v5.x as default branch for workflows and releases
- Update v5-tests.yml to run on push to v5.x branch
- Update v5-release.yml to publish releases from v5.x branch
- Update .releaserc.json to target v5.x branch for semantic versioning
- Corrects workflow configuration to match repository's actual default branch
2026-07-06 17:25:12 +00:00
Claude
4832c0b506 ci: split test and release workflows for better maintainability
- Create v5-tests.yml: Runs all test jobs on push/pull_request
- Create v5-release.yml: Dedicated release job with schedule and manual triggers
- Remove combined v5-tests-and-release.yml workflow
- Test workflow runs on every push and PR for early feedback
- Release workflow runs daily at UTC midnight or on manual trigger
- Clearer separation of concerns for easier maintenance
2026-07-06 17:24:36 +00:00
Claude
ffad7e3eb7 ci: replace release-that action with semantic-release
- Update workflow triggers to support scheduled daily releases at UTC midnight
- Add workflow_dispatch for manual release triggering
- Add conditional logic to only run release on main branch pushes, schedules, or manual triggers
- Replace rlespinasse/release-that@v1 with cycjimmy/semantic-release-action@v4
- Switch from custom GH_TOKEN to standard GITHUB_TOKEN
- Create .releaserc.json with minimal semantic-release configuration
- Automatically analyzes conventional commits and generates releases
- Enables once-daily release cadence with unpublished commit detection
2026-07-06 17:22:37 +00:00
3 changed files with 40 additions and 23 deletions

26
.github/workflows/v5-release.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: "[v5] Release"
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
packages: write
jobs:
release:
runs-on: ubuntu-latest
concurrency:
group: release-${{ github.ref }}-${{ github.event_name }}
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Release this GitHub Action
uses: cycjimmy/semantic-release-action@v4
with:
semantic_version: 21
branches: v5.x
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -1,5 +1,9 @@
name: "[v5] Test and Release"
on: [push, pull_request]
name: "[v5] Test"
on:
push:
branches:
- v5.x
pull_request:
permissions: read-all
jobs:
check-v4-compatibility:
@@ -379,24 +383,3 @@ jobs:
[[ "${{ steps.using-nolimit-slug-max-length.outcome }}" == "success" ]]
[[ "${{ steps.using-nolimit-slug-max-length.conclusion }}" == "success" ]]
shell: bash
release:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
id-token: write
packages: write
concurrency:
group: release-${{ github.ref }}-${{ github.event_name }}
needs:
- display-without-checkout
- input-short-length-without-checkout
- input-slug-maxlength
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Release this GitHub Action
uses: rlespinasse/release-that@v1
with:
github-token: ${{ secrets.GH_TOKEN }}

8
.releaserc.json Normal file
View File

@@ -0,0 +1,8 @@
{
"branches": ["v5.x"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github"
]
}