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
4 changed files with 42 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"
]
}

View File

@@ -96,6 +96,7 @@ In English :gb:
- [Action spotlight by Michael Heap][article-2]
- [Serverless Deploy Previews on GitHub Actions][article-3]
- [Let's Build a Continuous Delivery and Branching Process with GitHub Actions, Vercel and Heroku][article-4]
- [Celebrating 5 Years of github-slug-action on sfeir.dev][article-7]
In French :fr:
@@ -123,4 +124,5 @@ In Chinese :cn:
[article-4]: https://javascript.plainenglish.io/lets-build-a-continuous-delivery-and-branching-process-c27dae09f0b6
[article-5]: https://eryajf.github.io/HowToStartOpenSource/views/03-github-tips/10-Use-github-slug-action-to-leak-key-variables-in-the-Github-Action-context.html
[article-6]: https://www.sfeir.dev/5-ans-de-github-slug-action-une-aventure-open-source/
[article-7]: https://www.romainlespinasse.dev/posts/celebrating-5-years-of-github-slug-action/
[talk-1]: https://www.youtube.com/watch?v=F5mBDmOQcvE