CI: Add --no-optional flag to prod flavor

This ensures that the packages build successfully even when optional
deps are unavailable.
`--no-optional` currently has no effect on the backend, because
it has no optional packages.
This commit is contained in:
Erik Arvstedt 2022-07-06 23:38:07 +02:00
parent 80476a2b61
commit 6288bcde51
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -32,7 +32,7 @@ jobs:
- name: Install (Prod dependencies only)
if: ${{ matrix.flavor == 'prod'}}
run: npm ci --prod
run: npm ci --prod --no-optional
working-directory: ${{ matrix.flavor }}/backend
- name: Lint
@ -67,7 +67,7 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- name: Install (Prod dependencies only)
run: npm ci --prod
run: npm ci --prod --no-optional
if: ${{ matrix.flavor == 'prod'}}
working-directory: ${{ matrix.flavor }}/frontend