Skip to content

Commit e5a9e43

Browse files
committed
ci: use npm ci when lockfile exists; fallback to npm install
1 parent a4b65d8 commit e5a9e43

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ jobs:
2828
cache: 'npm'
2929

3030
- name: Install dependencies
31-
run: npm ci
31+
run: |
32+
if [ -f package-lock.json ]; then
33+
npm ci
34+
else
35+
npm install
36+
fi
3237
3338
- name: Build
3439
run: npm run build
@@ -52,4 +57,4 @@ jobs:
5257
steps:
5358
- name: Deploy to GitHub Pages
5459
id: deployment
55-
uses: actions/deploy-pages@v4
60+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)