Skip to content

Commit 0b82757

Browse files
committed
refactor: simplify tag patterns with clear comments
- Use concise patterns with descriptive comments - Main releases: v1, v1.2, v1.2.3 - Prereleases: v1.2.3-rc1, v1.2.3-beta.1, etc. - Remove redundant explicit patterns - general v[0-9]+.[0-9]+.[0-9]+-* covers all prerelease formats - Maintain security by requiring numeric versions only
1 parent 10f3a97 commit 0b82757

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@ on:
55
types: [created]
66
push:
77
tags:
8+
# Main release versions: v1, v1.2, v1.2.3
89
- "v[0-9]+"
9-
- "v[0-9]+.[0-9]+"
10+
- "v[0-9]+.[0-9]+"
1011
- "v[0-9]+.[0-9]+.[0-9]+"
12+
# Prerelease versions: v1.2.3-rc1, v1.2.3-beta.1, etc.
1113
- "v[0-9]+.[0-9]+.[0-9]+-*"
12-
# Explicit patterns for common prerelease formats
13-
- "v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+"
14-
- "v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+"
15-
- "v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+"
1614

1715
concurrency:
1816
group: ${{ github.workflow }}-${{ github.ref }}

0 commit comments

Comments
 (0)