Skip to content

Commit 34ffb04

Browse files
committed
feat(release): update tag pattern to support semantic versioning with '@' prefix and add validation for tag format
1 parent 6f47b8e commit 34ffb04

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ permissions:
77
on:
88
push:
99
tags:
10-
- "v*"
10+
- "*@*"
1111

1212
jobs:
1313
release:
@@ -16,6 +16,14 @@ jobs:
1616
- uses: actions/checkout@v4
1717
with:
1818
fetch-depth: 0
19+
20+
- name: Validate tag format
21+
run: |
22+
if [[ ! $GITHUB_REF =~ ^refs/tags/[a-zA-Z0-9-]+@[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
23+
echo "Invalid tag format. Expected 'name@x.y.z'."
24+
exit 1
25+
fi
26+
1927
- uses: pnpm/action-setup@v4
2028
- uses: actions/setup-node@v4
2129
with:

0 commit comments

Comments
 (0)