From 8eacab942537091a7012ebfaaa9a7c9a69a5ef76 Mon Sep 17 00:00:00 2001 From: SouriRishik Date: Sun, 26 Oct 2025 20:48:46 +0530 Subject: [PATCH 1/2] fix(ci): make npm cache resilient and versioned (v2) --- .github/workflows/lint.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a28e682..a73d205 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,11 +10,18 @@ jobs: - uses: actions/checkout@v3 - name: Setup Node.js - uses: actions/setup-node@v2.5.2 + uses: actions/setup-node@v4 with: node-version: 18.x - cache: npm - cache-dependency-path: "**/package-lock.json" + + - name: Cache npm + uses: actions/cache@v4 + continue-on-error: true + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}-v2 + restore-keys: | + ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}- - name: Install dependencies run: npm install --legacy-peer-deps From 9d2f9b0b316321e59dd5675658e87e4e3ca25195 Mon Sep 17 00:00:00 2001 From: SouriRishik Date: Sun, 26 Oct 2025 22:28:22 +0530 Subject: [PATCH 2/2] fix(ci): update GitHub Actions to use latest versions of checkout and setup-node --- .github/workflows/lint.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a73d205..b33ec3a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -7,21 +7,14 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v5 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: - node-version: 18.x - - - name: Cache npm - uses: actions/cache@v4 - continue-on-error: true - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}-v2 - restore-keys: | - ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}- + node-version: 20.x + cache: 'npm' + cache-dependency-path: '**/package-lock.json' - name: Install dependencies run: npm install --legacy-peer-deps