Skip to content

Commit 8718a3e

Browse files
authored
fix(ci): retry pnpm dedupe --check to handle non-deterministic resolution (#1365)
pnpm dedupe --check re-resolves all dependencies and can produce different results between runs due to async resolution ordering of optional transitive peer dependencies (oxc-resolver via dts-resolver).
1 parent 4d9bc46 commit 8718a3e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,11 @@ jobs:
177177
- name: Install docs dependencies
178178
run: pnpm -C docs install --frozen-lockfile
179179

180+
# Retry once because `pnpm dedupe --check` re-resolves all dependencies and
181+
# can non-deterministically flag optional transitive peers (e.g. oxc-resolver
182+
# via dts-resolver) as dedup-able depending on async resolution order.
180183
- name: Deduplicate dependencies
181-
run: pnpm dedupe --check
184+
run: pnpm dedupe --check || pnpm dedupe --check
182185

183186
cli-e2e-test:
184187
name: CLI E2E test

0 commit comments

Comments
 (0)