Skip to content

Commit e092e75

Browse files
committed
cs
1 parent 878ca66 commit e092e75

1 file changed

Lines changed: 1 addition & 20 deletions

File tree

.github/workflows/submit.yml

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,8 @@
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-
161
name: Release Management
172
on:
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

@@ -52,8 +35,6 @@ jobs:
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
@@ -83,8 +64,8 @@ jobs:
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

0 commit comments

Comments
 (0)