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 44db31b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,19 @@ jobs:
uses: actions/download-artifact@v3
with:
name: build-artifacts
path: ./dist

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

0 comments on commit 44db31b

Please sign in to comment.