CI/frontend: Add missing install flag for prod
flavor
Also restrict linting, which requires dev packages, to the `dev` flavor. This makes the frontend build setup indentical to the backend.
This commit is contained in:
parent
386a2de117
commit
78ee671051
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -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 install
|
run: npm install --prod
|
||||||
if: ${{ matrix.flavor == 'prod'}}
|
if: ${{ matrix.flavor == 'prod'}}
|
||||||
working-directory: ${{ matrix.flavor }}/frontend
|
working-directory: ${{ matrix.flavor }}/frontend
|
||||||
|
|
||||||
@ -77,6 +77,7 @@ jobs:
|
|||||||
working-directory: ${{ matrix.flavor }}/frontend
|
working-directory: ${{ matrix.flavor }}/frontend
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
|
if: ${{ matrix.flavor == 'dev'}}
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
working-directory: ${{ matrix.flavor }}/frontend
|
working-directory: ${{ matrix.flavor }}/frontend
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user