Skip to content

Commit feb6c2e

Browse files
Only run package-lock.json sync check on PRs (#40495)
1 parent d466c00 commit feb6c2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build-system/common/update-packages.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const path = require('path');
66
const {cyan, red} = require('kleur/colors');
77
const {execOrDie} = require('./exec');
88
const {getOutput} = require('./process');
9-
const {isCiBuild} = require('./ci');
9+
const {isCiBuild, isPullRequestBuild} = require('./ci');
1010
const {log, logLocalDev} = require('./logging');
1111
const {runNpmChecks} = require('./npm-checks');
1212

@@ -213,7 +213,7 @@ function updatePackages() {
213213
patchIntersectionObserver();
214214
patchResizeObserver();
215215
patchShadowDom();
216-
if (isCiBuild()) {
216+
if (isPullRequestBuild()) {
217217
runNpmChecks();
218218
}
219219
}
@@ -244,7 +244,7 @@ function updateSubpackages(dir, skipNpmChecks = false) {
244244
throw new Error('Installation failed');
245245
}
246246
}
247-
if (isCiBuild() && !skipNpmChecks) {
247+
if (isPullRequestBuild() && !skipNpmChecks) {
248248
runNpmChecks(dir);
249249
}
250250
}

0 commit comments

Comments
 (0)