From 89c849ba5013e45e8fb688b138f33c2ec6083dc5 Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Mon, 26 Oct 2020 10:37:03 -0400 Subject: [PATCH] build(node): cleanup production deps before installing dev/production (#829) --- .../gcp/templates/node_library/.github/workflows/ci.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/synthtool/gcp/templates/node_library/.github/workflows/ci.yaml b/synthtool/gcp/templates/node_library/.github/workflows/ci.yaml index ddf095475..22d3e1ef7 100644 --- a/synthtool/gcp/templates/node_library/.github/workflows/ci.yaml +++ b/synthtool/gcp/templates/node_library/.github/workflows/ci.yaml @@ -19,7 +19,9 @@ jobs: # The first installation step ensures that all of our production # dependencies work on the given Node.js version, this helps us find # dependencies that don't match our engines field: - - run: npm install --production --engine-strict --ignore-scripts + - run: npm install --production --engine-strict --ignore-scripts --no-package-lock + # Clean up the production install, before installing dev/production: + - run: rm -rf node_modules - run: npm install - run: npm test - name: coverage