From d4341192791825fb9ffbedfada2fd5d596e64cea Mon Sep 17 00:00:00 2001 From: Donghao Ren Date: Sun, 17 Aug 2025 20:57:00 -0700 Subject: [PATCH 1/2] chore: Update ci.yml to check if package-lock.json is changed --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 146cb8d..89fa951 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,6 +40,13 @@ jobs: - name: Install dependencies run: npm install + - name: Check if package-lock.json changed + run: | + if ! git diff --exit-code package-lock.json; then + echo "❌ package-lock.json was modified after npm install. Please commit updated lockfile." + exit 1 + fi + - uses: actions/cache@v4 id: cache-demo-data with: From 892ca88d1cc7de3d98da052bb191ede79ac5010b Mon Sep 17 00:00:00 2001 From: Donghao Ren Date: Mon, 18 Aug 2025 10:04:27 -0700 Subject: [PATCH 2/2] Update ci.yml --- .github/workflows/ci.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 89fa951..2a893fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,14 +38,7 @@ jobs: uses: astral-sh/setup-uv@v5 - name: Install dependencies - run: npm install - - - name: Check if package-lock.json changed - run: | - if ! git diff --exit-code package-lock.json; then - echo "❌ package-lock.json was modified after npm install. Please commit updated lockfile." - exit 1 - fi + run: npm ci - uses: actions/cache@v4 id: cache-demo-data