Skip to content

Commit aee24a0

Browse files
fix(ci): pass --legacy-peer-deps directly in npm install command
The .npmrc at repo root is not reliably picked up when workingDirectory is set to a subdirectory. Pass the flag directly to both npm ci and npm install fallback to guarantee it takes effect. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent f0ae48b commit aee24a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pipelines/esrp-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ stages:
213213
inputs:
214214
version: '${{ parameters.nodeVersion }}'
215215

216-
- script: npm ci --ignore-scripts 2>/dev/null || npm install
216+
- script: npm ci --ignore-scripts --legacy-peer-deps 2>/dev/null || npm install --legacy-peer-deps
217217
workingDirectory: '${{ pkg.path }}'
218218
displayName: 'Install dependencies'
219219

0 commit comments

Comments
 (0)