perf(ci): optimize npm install and fix deprecation warnings
Some checks failed
Release / Release (push) Waiting to run
Release / Build & Push Docker Image (push) Has been cancelled

- Add --prefer-offline --no-audit --no-fund flags to npm ci
- Fix semantic-release deprecation: use successCommentCondition instead of successComment
This commit is contained in:
Tuan-Dat Tran
2026-02-23 21:53:58 +01:00
parent 6f01124ac5
commit a593dd53c5
5 changed files with 16 additions and 16 deletions

View File

@@ -22,7 +22,7 @@ jobs:
cache: "npm"
- name: Install dependencies
run: npm ci
run: npm ci --prefer-offline --no-audit --no-fund
- name: Validate current commit
if: github.event_name == 'push'
@@ -50,7 +50,7 @@ jobs:
cache: "npm"
- name: Install dependencies
run: npm ci
run: npm ci --prefer-offline --no-audit --no-fund
- name: Lint
run: npm run lint
@@ -82,7 +82,7 @@ jobs:
- name: Install dependencies
working-directory: ./backend
run: npm ci
run: npm ci --prefer-offline --no-audit --no-fund
- name: Test
working-directory: ./backend
@@ -103,7 +103,7 @@ jobs:
cache: "npm"
- name: Install dependencies
run: npm ci
run: npm ci --prefer-offline --no-audit --no-fund
- name: Run Integration Tests
run: npm run test:integration
@@ -123,7 +123,7 @@ jobs:
cache: "npm"
- name: Install dependencies
run: npm ci
run: npm ci --prefer-offline --no-audit --no-fund
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium
@@ -154,7 +154,7 @@ jobs:
cache: "npm"
- name: Install dependencies
run: npm ci
run: npm ci --prefer-offline --no-audit --no-fund
- name: Run Regression Tests
run: npm run test:regression
@@ -182,7 +182,7 @@ jobs:
cache: "npm"
- name: Install dependencies
run: npm ci
run: npm ci --prefer-offline --no-audit --no-fund
- name: Build
run: npm run build
@@ -206,7 +206,7 @@ jobs:
cache: "npm"
- name: Install dependencies
run: npm ci
run: npm ci --prefer-offline --no-audit --no-fund
- name: Run tests with coverage
run: npm run test:coverage

View File

@@ -32,11 +32,11 @@ jobs:
cache: "npm"
- name: Install dependencies
run: npm ci
run: npm ci --prefer-offline --no-audit --no-fund
- name: Install backend dependencies
working-directory: ./backend
run: npm ci
run: npm ci --prefer-offline --no-audit --no-fund
- name: Build
run: npm run build

View File

@@ -30,11 +30,11 @@ jobs:
cache: "npm"
- name: Install dependencies
run: npm ci
run: npm ci --prefer-offline --no-audit --no-fund
- name: Install backend dependencies
working-directory: ./backend
run: npm ci
run: npm ci --prefer-offline --no-audit --no-fund
- name: Lint
run: npm run lint

View File

@@ -26,11 +26,11 @@ jobs:
cache: "npm"
- name: Install dependencies
run: npm ci
run: npm ci --prefer-offline --no-audit --no-fund
- name: Install backend dependencies
working-directory: ./backend
run: npm ci
run: npm ci --prefer-offline --no-audit --no-fund
- name: Lint
run: npm run lint

View File

@@ -64,8 +64,8 @@
[
"@semantic-release/github",
{
"successComment": false,
"failComment": false,
"successCommentCondition": false,
"failCommentCondition": false,
"releasedLabels": false
}
]