Skip to content

Commit 75b27cb

Browse files
committed
chore(ci): avoid main releases
1 parent eacb6c0 commit 75b27cb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/release-next.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111

1212
jobs:
1313
release:
14+
# Only run on pre-release tags not from main
15+
if: ${{ github.event.base_ref != 'refs/heads/main' }}
1416
runs-on: ubuntu-latest
1517
steps:
1618
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111

1212
jobs:
1313
release:
14+
# Skip pre-release tags (e.g., v3.0.0-beta.1)
15+
if: ${{ !contains(github.ref_name, '-') }}
1416
runs-on: ubuntu-latest
1517
steps:
1618
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6

0 commit comments

Comments
 (0)