From 7c6270bfa711c477d7e1192ba8ebeb7e54467e40 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 13 Dec 2022 13:44:02 +0100 Subject: [PATCH] speed up sync-search-pr with faster 'npm install' (#33466) --- .github/workflows/sync-search-pr.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync-search-pr.yml b/.github/workflows/sync-search-pr.yml index be287ea09d..18c22374cb 100644 --- a/.github/workflows/sync-search-pr.yml +++ b/.github/workflows/sync-search-pr.yml @@ -46,6 +46,12 @@ jobs: - name: Check out repo uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 + - name: Cache node_modules + uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 + with: + path: node_modules + key: ${{ runner.os }}-node_modules-${{ hashFiles('package*.json') }} + - name: Setup node uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 with: @@ -53,7 +59,7 @@ jobs: cache: npm - name: Install dependencies - run: npm ci + run: npm install --prefer-offline --no-audit --ignore-scripts - name: Cache nextjs build uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7