From a68d961379321f1e20912e8e880a8bd86d847742 Mon Sep 17 00:00:00 2001 From: JackChen Date: Sun, 5 Apr 2026 12:05:48 +0800 Subject: [PATCH] ci: use npm install instead of npm ci for cross-platform compat npm ci fails on Linux CI when package-lock.json was generated on macOS, because platform-specific optional deps (@rollup/rollup-linux-x64-gnu) are missing from the lockfile. This is a known npm bug (#4828). --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6f5b577..b38c38e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,6 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: npm - - run: npm ci + - run: npm install - run: npm run lint - run: npm test