From a4404ebb421f7d1b5a6ebfede0bc30f5e7c7f5e6 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Tue, 22 Jul 2025 10:52:52 -0400 Subject: [PATCH] Install latest NPM for CI static checks Some of the static checks may behave differently in newer or older versions of NPM. Specifically, "local changes" checks for changes to `package-lock.json` after `npm install`, but changes may only be present on specific versions of NPM. We should default to running the latest version. --- .github/workflows/static-checks.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/static-checks.yml b/.github/workflows/static-checks.yml index 86cbacd6d960a9..f211be03ce45eb 100644 --- a/.github/workflows/static-checks.yml +++ b/.github/workflows/static-checks.yml @@ -40,6 +40,9 @@ jobs: check-latest: true cache: npm + - name: Install latest npm + run: npm install -g npm@latest + - name: Npm install # A "full" install is executed, since `npm ci` does not always exit # with an error status code if the lock file is inaccurate. This also