Skip to content

Commit 89c849b

Browse files
author
Benjamin E. Coe
authored
build(node): cleanup production deps before installing dev/production (#829)
1 parent a783321 commit 89c849b

File tree

1 file changed

+3
-1
lines changed
  • synthtool/gcp/templates/node_library/.github/workflows

1 file changed

+3
-1
lines changed

synthtool/gcp/templates/node_library/.github/workflows/ci.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ jobs:
1919
# The first installation step ensures that all of our production
2020
# dependencies work on the given Node.js version, this helps us find
2121
# dependencies that don't match our engines field:
22-
- run: npm install --production --engine-strict --ignore-scripts
22+
- run: npm install --production --engine-strict --ignore-scripts --no-package-lock
23+
# Clean up the production install, before installing dev/production:
24+
- run: rm -rf node_modules
2325
- run: npm install
2426
- run: npm test
2527
- name: coverage

0 commit comments

Comments
 (0)