Skip to content

Commit a61307e

Browse files
committed
Update deployment workflow to conditionally install dependencies based on presence of package-lock.json
1 parent 7db6e30 commit a61307e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ jobs:
2424
node-version: '14'
2525

2626
- name: Install dependencies
27-
run: npm ci
27+
run: |
28+
if [ -f package-lock.json ]; then
29+
npm ci
30+
else
31+
npm install
32+
fi
2833
2934
- name: Install Vercel CLI
3035
run: npm install -g vercel

0 commit comments

Comments
 (0)