From a593dd53c5f9f7b170833c859025ff0aac2d17db Mon Sep 17 00:00:00 2001 From: Tuan-Dat Tran Date: Mon, 23 Feb 2026 21:53:58 +0100 Subject: [PATCH] perf(ci): optimize npm install and fix deprecation warnings - Add --prefer-offline --no-audit --no-fund flags to npm ci - Fix semantic-release deprecation: use successCommentCondition instead of successComment --- .github/workflows/ci.yml | 16 ++++++++-------- .github/workflows/nightly.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/staging.yml | 4 ++-- .releaserc.json | 4 ++-- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b589b38..47c55d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index d3922bc..55f8920 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7d2313e..803307d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index 836f28b..a92207c 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -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 diff --git a/.releaserc.json b/.releaserc.json index 4f0e0b1..38b67c6 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -64,8 +64,8 @@ [ "@semantic-release/github", { - "successComment": false, - "failComment": false, + "successCommentCondition": false, + "failCommentCondition": false, "releasedLabels": false } ]