Skip to content

Commit b13a7f5

Browse files
committed
fix: Fix CI
1 parent c050745 commit b13a7f5

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,20 @@ jobs:
5757

5858
- name: Install dependencies and build plugin
5959
run: |
60+
echo "Available directories:"
61+
ls -l # This will list the directories in the current working directory
62+
6063
cd ${{ matrix.plugin }}
61-
pnpm install
62-
pnpm run build
64+
echo "Changed directory to ${{ matrix.plugin }}"
65+
66+
# Check if the directory exists before trying to run pnpm
67+
if [ -d "$PWD" ]; then
68+
pnpm install
69+
pnpm run build
70+
else
71+
echo "Error: Directory ${{ matrix.plugin }} does not exist!"
72+
exit 1 # Fail the job if the directory does not exist
73+
fi
6374
env:
6475
NODE_ENV: production
6576

0 commit comments

Comments
 (0)