Skip to content

Commit f27ef27

Browse files
committed
fix: use npm ci instead of npm i in frontend workflows
`npm ci` is the correct command for CI environments as it: - Installs exact versions from package-lock.json - Ensures reproducible builds across environments - Fails if package.json and package-lock.json are out of sync - Removes node_modules before installing for clean installs Signed-off-by: Omar <omar.brbutovic@secomind.com>
1 parent 0578389 commit f27ef27

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/frontend-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
cache-dependency-path: frontend/package-lock.json
4545
- name: Npm install
4646
working-directory: frontend
47-
run: npm i
47+
run: npm ci
4848
- name: Build
4949
working-directory: frontend
5050
run: npm run build

.github/workflows/frontend-coverage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
cache-dependency-path: frontend/package-lock.json
4646
- name: npm install
4747
working-directory: frontend
48-
run: npm i
48+
run: npm ci
4949
- name: Run tests
5050
working-directory: frontend
5151
run: npm run coverage

.github/workflows/frontend-format.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
cache-dependency-path: frontend/package-lock.json
4646
- name: npm install
4747
working-directory: frontend
48-
run: npm i
48+
run: npm ci
4949
- name: Check formatting
5050
working-directory: frontend
5151
run: npm run check-format

.github/workflows/frontend-linting.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
cache-dependency-path: frontend/package-lock.json
4646
- name: npm install
4747
working-directory: frontend
48-
run: npm i
48+
run: npm ci
4949
- name: Check linting
5050
working-directory: frontend
5151
run: npm run check-lint

.github/workflows/frontend-translations.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
cache-dependency-path: frontend/package-lock.json
4646
- name: npm install
4747
working-directory: frontend
48-
run: npm i
48+
run: npm ci
4949
- name: Extract and verify translations
5050
working-directory: frontend
5151
run: |

.github/workflows/frontend-types.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
cache-dependency-path: frontend/package-lock.json
4646
- name: npm install
4747
working-directory: frontend
48-
run: npm i
48+
run: npm ci
4949
- name: Check types
5050
working-directory: frontend
5151
run: npm run check-types

0 commit comments

Comments
 (0)