From 10180dbd88a2d9e6915c82193b1d9eff19c7e784 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Mon, 2 Mar 2026 10:03:10 +0800 Subject: [PATCH] chore: generate package-lock.json from scratch to ensure accuracy (#7077) --- .github/workflows/npm-update.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-update.yml b/.github/workflows/npm-update.yml index 1c79b44b1..f659e8f73 100644 --- a/.github/workflows/npm-update.yml +++ b/.github/workflows/npm-update.yml @@ -30,8 +30,10 @@ jobs: with: node-version: 20 - - name: Run npm update - run: npm update --package-lock-only + - name: Generate lockfile from scratch + run: | + rm -f package-lock.json + npm install --package-lock-only - name: Check if there are changes id: check_changes