Fix CI install by enabling legacy peer deps

This commit is contained in:
svemagie
2026-03-09 13:52:25 +01:00
parent 8d77f0d259
commit f44211799c
2 changed files with 3 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ jobs:
node-version: '18'
- name: Install dependencies
run: npm ci
run: npm ci --legacy-peer-deps
- name: Build (if needed)
run: |
@@ -37,7 +37,7 @@ jobs:
restart_log=/tmp/indiekit-restart.log
# Update code and dependencies as indiekit user inside the jail.
sudo bastille cmd node sh -lc 'su -l indiekit -c "cd /usr/local/indiekit && git pull origin main && npm ci && install -m 755 start.example.sh start.sh"'
sudo bastille cmd node sh -lc 'su -l indiekit -c "cd /usr/local/indiekit && git pull origin main && npm ci --legacy-peer-deps && install -m 755 start.example.sh start.sh"'
# sharp/libvips are managed manually on the server.

1
.npmrc Normal file
View File

@@ -0,0 +1 @@
legacy-peer-deps=true