diff --git a/.github/workflows/lint-and-test.yml b/.github/workflows/lint-and-test.yml index 22c5ee4086..94adf3a963 100644 --- a/.github/workflows/lint-and-test.yml +++ b/.github/workflows/lint-and-test.yml @@ -167,6 +167,7 @@ jobs: uses: actions/setup-node@v4 with: node-version-file: .nvmrc + cache: 'yarn' - name: Extract dependencies for client id: extract-dependencies @@ -199,16 +200,6 @@ jobs: fi done - - name: Cache Node.js dependencies - uses: actions/cache@v4 - with: - path: | - **/node_modules - ~/.cache/yarn/v6 - key: node-${{ hashFiles('**/yarn.lock', format('{0}/{1}','packages/client','package.json')) }} - restore-keys: | - ${{ runner.os }}-node- - - name: Install dependencies run: CI="" yarn install --frozen-lockfile @@ -244,16 +235,7 @@ jobs: uses: actions/setup-node@v4 with: node-version-file: .nvmrc - - - name: Cache Node.js dependencies - uses: actions/cache@v4 - with: - path: | - **/node_modules - ~/.cache/yarn/v6 - key: node-${{ hashFiles('**/yarn.lock', format('{0}/{1}','packages/client','package.json')) }} - restore-keys: | - ${{ runner.os }}-node- + cache: 'yarn' - name: Install dependencies run: CI="" yarn install --frozen-lockfile @@ -284,16 +266,7 @@ jobs: uses: actions/setup-node@v4 with: node-version-file: .nvmrc - - - name: Cache Node.js dependencies - uses: actions/cache@v4 - with: - path: | - **/node_modules - ~/.cache/yarn/v6 - key: node-${{ hashFiles('**/yarn.lock', format('{0}/{1}','packages/client','package.json')) }} - restore-keys: | - ${{ runner.os }}-node- + cache: 'yarn' - name: Install dependencies run: CI="" yarn install --frozen-lockfile