Skip to content

Commit

Permalink
ci: add check for dist files before release
Browse files Browse the repository at this point in the history
  • Loading branch information
zavoloklom committed Sep 14, 2024
1 parent 43a7efa commit efff2f2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@ jobs:
with:
name: build-artifacts

- name: List files in dist folder
run: |
if [ -z "$(ls -A ./dist)" ]; then
echo "Error: dist folder is empty"
exit 1
else
ls -la ./build-artifacts
ls -la ./dist
echo "dist folder contains files"
fi
- name: Set up Node.js
uses: actions/setup-node@v3
with:
Expand Down

0 comments on commit efff2f2

Please sign in to comment.