Skip to content

Commit 65c72b9

Browse files
authored
Merge pull request #673 from sid88in/chore/add-build-verification-to-ci
chore: add build verification in CI
2 parents 19210c2 + cffcbc5 commit 65c72b9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,17 @@ jobs:
2828
run: npm run lint
2929
- name: Tests
3030
run: npm run test
31+
- name: Run npm pack dry-run
32+
run: npm pack --dry-run
33+
- name: Check if lib directory exists
34+
run: |
35+
if [ ! -d "lib" ]; then
36+
echo "Error: lib directory does not exist"
37+
exit 1
38+
fi
39+
- name: Check if lib directory has files
40+
run: |
41+
if [ -z "$(ls -A lib)" ]; then
42+
echo "Error: lib directory is empty"
43+
exit 1
44+
fi

0 commit comments

Comments
 (0)