From 79c74af2e9daa83a0598a0e989201df24026f085 Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Thu, 4 Jun 2026 13:34:35 -0700 Subject: [PATCH] ci: cache npm downloads in frontend-heavy workflows (#40744) Co-authored-by: Claude Code --- .github/workflows/pre-commit.yml | 2 ++ .github/workflows/superset-e2e.yml | 4 ++++ .github/workflows/superset-playwright.yml | 2 ++ 3 files changed, 8 insertions(+) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index ffb90a72b52..07920821e1d 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -49,6 +49,8 @@ jobs: uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 with: node-version: '20' + cache: 'npm' + cache-dependency-path: 'superset-frontend/package-lock.json' - name: Install Frontend Dependencies run: | diff --git a/.github/workflows/superset-e2e.yml b/.github/workflows/superset-e2e.yml index 1f035151b4b..b9028c786d1 100644 --- a/.github/workflows/superset-e2e.yml +++ b/.github/workflows/superset-e2e.yml @@ -131,6 +131,8 @@ jobs: uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 with: node-version-file: './superset-frontend/.nvmrc' + cache: 'npm' + cache-dependency-path: 'superset-frontend/package-lock.json' - name: Install npm dependencies uses: ./.github/actions/cached-dependencies with: @@ -239,6 +241,8 @@ jobs: uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 with: node-version-file: './superset-frontend/.nvmrc' + cache: 'npm' + cache-dependency-path: 'superset-frontend/package-lock.json' - name: Install npm dependencies uses: ./.github/actions/cached-dependencies with: diff --git a/.github/workflows/superset-playwright.yml b/.github/workflows/superset-playwright.yml index b7135c30b60..8d75029dac5 100644 --- a/.github/workflows/superset-playwright.yml +++ b/.github/workflows/superset-playwright.yml @@ -117,6 +117,8 @@ jobs: uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 with: node-version-file: './superset-frontend/.nvmrc' + cache: 'npm' + cache-dependency-path: 'superset-frontend/package-lock.json' - name: Install npm dependencies uses: ./.github/actions/cached-dependencies with: