mirror of
https://github.com/mempool/mempool.git
synced 2024-11-20 02:11:49 +01:00
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:
parent
80476a2b61
commit
6288bcde51
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -32,7 +32,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Install (Prod dependencies only)
|
- name: Install (Prod dependencies only)
|
||||||
if: ${{ matrix.flavor == 'prod'}}
|
if: ${{ matrix.flavor == 'prod'}}
|
||||||
run: npm ci --prod
|
run: npm ci --prod --no-optional
|
||||||
working-directory: ${{ matrix.flavor }}/backend
|
working-directory: ${{ matrix.flavor }}/backend
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
@ -67,7 +67,7 @@ jobs:
|
|||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
|
||||||
- name: Install (Prod dependencies only)
|
- name: Install (Prod dependencies only)
|
||||||
run: npm ci --prod
|
run: npm ci --prod --no-optional
|
||||||
if: ${{ matrix.flavor == 'prod'}}
|
if: ${{ matrix.flavor == 'prod'}}
|
||||||
working-directory: ${{ matrix.flavor }}/frontend
|
working-directory: ${{ matrix.flavor }}/frontend
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user