Skip to content

Commit a3a0e87

Browse files
Copilotsensslen
andcommitted
Improve workflow with build verification and stricter tag pattern
Co-authored-by: sensslen <3428860+sensslen@users.noreply.github.com>
1 parent 8c69dc4 commit a3a0e87

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: Build and Release
33
on:
44
push:
55
tags:
6-
- 'v*' # Trigger on version tags like v1.0.0, v2.1.3, etc.
6+
- 'v[0-9]+.[0-9]+.[0-9]+' # Trigger on semantic version tags like v1.0.0, v2.1.3, etc.
7+
- 'v[0-9]+.[0-9]+.[0-9]+-*' # Also support pre-release tags like v1.0.0-beta.1
78

89
jobs:
910
build-and-release:
@@ -35,6 +36,14 @@ jobs:
3536
- name: Build project
3637
run: npm run build
3738

39+
- name: Verify build output
40+
run: |
41+
if [ ! -d "dist" ]; then
42+
echo "Error: dist directory not found after build"
43+
exit 1
44+
fi
45+
echo "Build output verified successfully"
46+
3847
- name: Create release archive
3948
run: |
4049
cd dist

0 commit comments

Comments
 (0)