Skip to content

Commit

Permalink
Update GitHub Action workflow files to pass production flag to npm in…
Browse files Browse the repository at this point in the history
…stall commands
  • Loading branch information
courtneymyers committed Oct 24, 2024
1 parent 2b1f524 commit d212ded
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d212ded

Please sign in to comment.