Browse Source

ci(acceptance): Cache node_modules (#43524)

Matt Gaunt-Seo @ Sentry.io 2 years ago
parent
commit
5f613e3770
1 changed files with 6 additions and 0 deletions
  1. 6 0
      .github/workflows/acceptance.yml

+ 6 - 0
.github/workflows/acceptance.yml

@@ -153,6 +153,12 @@ jobs:
           path: ${{ steps.config.outputs.webpack-path }}
           path: ${{ steps.config.outputs.webpack-path }}
           key: ${{ runner.os }}-v2-webpack-cache-${{ hashFiles('webpack.config.ts') }}
           key: ${{ runner.os }}-v2-webpack-cache-${{ hashFiles('webpack.config.ts') }}
 
 
+      - name: node_modules cache
+        uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7  # v3.0.11
+        with:
+          path: node_modules
+          key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock', 'api-docs/yarn.lock') }}
+
       - name: Install Javascript Dependencies
       - name: Install Javascript Dependencies
         run: |
         run: |
           yarn install --frozen-lockfile
           yarn install --frozen-lockfile