From d212ded3bd94ecbd37bedd1974b4eb38d6e6d141 Mon Sep 17 00:00:00 2001 From: Courtney Myers Date: Thu, 24 Oct 2024 14:17:39 -0400 Subject: [PATCH] Update GitHub Action workflow files to pass production flag to npm install commands --- .github/workflows/dev.yml | 2 +- .github/workflows/production.yml | 4 ++-- .github/workflows/staging.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 59922f7a..bb9018f4 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -97,7 +97,7 @@ jobs: working-directory: app/client - name: Install front-end dependencies - run: npm install + run: npm install --production working-directory: app/client - name: Build front-end files and move to server diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index d1039615..f28817c9 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -45,7 +45,7 @@ jobs: restore-keys: v1-npm-server-deps- - name: Install server app dependencies - run: npm install + run: npm install --production working-directory: app/server - name: Cache client app node modules @@ -60,7 +60,7 @@ jobs: working-directory: app/client - name: Install client app dependencies - run: npm install + run: npm install --production working-directory: app/client - name: Build client app diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index 139e1f9d..47d24188 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -97,7 +97,7 @@ jobs: working-directory: app/client - name: Install front-end dependencies - run: npm install + run: npm install --production working-directory: app/client - name: Build front-end files and move to server