Skip to content

Commit 9584d13

Browse files
sirdeggenclaude
andcommitted
fix(release): use --legacy-peer-deps when refreshing infra lockfiles
The "Sync published workspace versions" step runs `npm install --package-lock-only` in each infra/*/ dir to refresh stale @bsv/* ranges after sync-versions. infra/message-box-server carries transitional lint devDeps with a peer conflict (eslint-plugin-react@7.37.x peers eslint <=9.7, but the package pins eslint 10), causing npm ERESOLVE and failing the release (also broke releases for #203 and #204). This step only regenerates the lockfile (--package-lock-only --ignore-scripts); no lint runs here, so accept the legacy peer resolution instead of failing the whole release on a dev-only graph. Deeper fix (realigning message-box-server's eslint/ts-standard stack) is a separate follow-up. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 04e89e3 commit 9584d13

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/release.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,15 @@ jobs:
169169
# their @bsv/* ranges. Refresh each infra lockfile so the Dockerfile
170170
# `npm ci` step won't fail with "lockfile doesn't match" on the next
171171
# infra-release build. --package-lock-only skips node_modules I/O.
172+
# --legacy-peer-deps: some infra components (e.g. message-box-server)
173+
# carry transitional lint devDeps with peer conflicts (eslint-plugin-react
174+
# vs eslint 10); this step only refreshes the lockfile, so accept the
175+
# legacy peer resolution rather than fail the release on a dev-only graph.
172176
for d in infra/*/; do
173177
[ -f "$d/package.json" ] || continue
174178
[ -f "$d/package-lock.json" ] || continue
175179
echo "Refreshing lockfile in $d"
176-
(cd "$d" && npm install --package-lock-only --ignore-scripts)
180+
(cd "$d" && npm install --package-lock-only --ignore-scripts --legacy-peer-deps)
177181
done
178182
179183
if git diff --quiet; then

0 commit comments

Comments
 (0)