File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # Release Management Workflow
2- #
3- # This workflow provides automated release management with the following features:
4- # - Automatic changeset processing on push to main
5- # - PR validation with dry run checks (prevents merging broken code)
6- # - Manual workflow dispatch for releases
7- # - Comment-triggered releases (/release command)
8- #
9- # SETUP REQUIRED:
10- # To prevent merging PRs with failing checks, configure branch protection:
11- # 1. Go to Settings → Branches → Add rule for 'main'
12- # 2. Enable "Require status checks to pass before merging"
13- # 3. Add "PR Build Check" to required status checks
14- # 4. Enable "Require up-to-date branches"
15-
161name : Release Management
172on :
18- # Automatic changeset processing on push to main
193 push :
204 branches : [main]
215
22- # PR checks - dry run on every PR
236 pull_request :
247 types : [opened, synchronize, reopened]
258
5235 if : github.event_name == 'pull_request'
5336 steps :
5437 - uses : actions/checkout@v4
55- with :
56- fetch-depth : 0
5738
5839 - uses : pnpm/action-setup@v4
5940 name : Install pnpm
8364 if : steps.changeset-check.outputs.hasChangesets == 'true'
8465 run : |
8566 echo "Validating changeset format..."
86- git fetch origin main:main || git fetch origin main
8767 # Check if changesets are properly formatted
68+ git fetch origin main --depth 1
8869 pnpm changeset status
8970 echo "✅ Changeset format is valid"
9071
You can’t perform that action at this time.
0 commit comments