fix(ci/deploy): npm ci --legacy-peer-deps + Node 22 (deploy.yml v1.1)

Workflow run 26564332893 failed at 14s — most likely npm ci hit Histoire/Vite
peerDep conflict (quirk #74 in feedback_environment.md). --legacy-peer-deps
mirrors local install pattern. Also bumped to Node 22 (Node 20 actions deprecated).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Дмитрий
2026-05-28 11:45:23 +03:00
parent a982553af2
commit 3d75576a5e
2 changed files with 12 additions and 10 deletions
+5 -3
View File
@@ -43,16 +43,18 @@ jobs:
with:
ref: ${{ github.event.inputs.ref }}
- name: Setup Node 20
- name: Setup Node 22
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
cache: 'npm'
cache-dependency-path: app/package-lock.json
- name: Install frontend deps
# --legacy-peer-deps: Histoire 1.0-beta.1 заявляет peerDep vite ^7,
# установлено vite 8 — известный квирк проекта (memory feedback_environment.md #74).
working-directory: app
run: npm ci
run: npm ci --legacy-peer-deps
- name: Build frontend
working-directory: app