File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 2525 - name : Install dependencies
2626 run : npm ci
2727
28+ - name : Ensure zip utility is available (Ubuntu)
29+ if : runner.os == 'Linux'
30+ run : |
31+ sudo apt-get update
32+ sudo apt-get install -y zip
33+
2834 - name : Build project
2935 run : npm run build
3036
3339
3440 - name : Validate project
3541 run : |
36- # Check if build artifacts exist
37- ls -la *.zip
38- ls -la dist/
42+ # Check if build artifacts exist (do not fail if absent)
43+ if compgen -G "*.zip" > /dev/null; then
44+ echo "Listing zip artifacts:" && ls -la *.zip
45+ else
46+ echo "No zip artifacts found"
47+ fi
48+ if [ -d dist ]; then
49+ echo "Listing dist directory:" && ls -la dist/
50+ else
51+ echo "dist/ directory not found"
52+ fi
3953
4054 - name : Upload build artifacts
4155 uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments