From 1bc601da04bd93e1ac1b17404aab89d4eeb3d351 Mon Sep 17 00:00:00 2001 From: Keen Yee Liau Date: Tue, 16 Nov 2021 15:07:35 -0800 Subject: [PATCH] ci: Ignore scripts during npm install During npm install, the Lighthouse package which is installed from GitHub (@master branch) triggers the newly added `prepack` script [1], but due to a bug in NPM [2] the devDependencies are not available when the script is run, thus making the installation fail. [1]: https://github.com/GoogleChrome/lighthouse/pull/13261 [2]: https://github.com/npm/cli/issues/1865 --- .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 06f2d05..209ea8e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,5 +10,5 @@ jobs: with: node-version: 14.x - - run: npm install + - run: npm install --ignore-scripts - run: npm test