devops: do not run npm ci when generating 3d party notice (#35899)

This commit is contained in:
Yury Semikhatsky 2025-05-08 13:13:06 -07:00 committed by GitHub
parent 263453a7b2
commit 7850c15e0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,7 +17,6 @@
const checker = require('license-checker');
const fs = require('fs');
const path = require('path');
const { execSync } = require('child_process');
async function checkDir(dir) {
return await new Promise((f, r) => {
@ -53,7 +52,6 @@ This project incorporates components from the projects listed below. The origina
if (!bundle.isDirectory())
continue;
const dir = path.join(bundlesDir, bundle.name);
execSync('npm ci', { cwd: dir });
const packages = await checkDir(dir);
for (const [key, value] of Object.entries(packages)) {
if (value.licenseText)