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: