Skip to content

Commit 2de915d

Browse files
committed
only build when build script exists
1 parent 26eff48 commit 2de915d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,15 @@ jobs:
4848
run: npm install
4949
- name: Install Playwright
5050
run: npx -y playwright install --with-deps
51-
- name: Build project
52-
run: npm run build
51+
- name: Build project (if build script exists)
52+
run: |
53+
if npm run | grep -q "build"; then
54+
npm run build
55+
else
56+
echo "No build script found, skipping build"
57+
fi
58+
env:
59+
CI: true
5360
- name: Run tests
5461
run: npm run test
5562
env:

0 commit comments

Comments
 (0)