From f0beb42f7e8a91fedcd2c3775a319bf68ffd3348 Mon Sep 17 00:00:00 2001 From: Eduardoooxd Date: Mon, 10 Jun 2024 00:06:46 +0100 Subject: [PATCH] ci: improving dependecies cache mechanism --- .github/workflows/e2e-tests.yml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index ebf1660..1ddd44d 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -12,21 +12,14 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: ${{ vars.NODE_VERSION }} + - name: Install pnpm + uses: pnpm/action-setup@v4 - - name: Cache pnpm store - id: pnpm-cache - uses: actions/cache@v3 + - name: Use Node.js ${{ vars.NODE_VERSION }} + uses: actions/setup-node@v4 with: - path: ~/.pnpm-store - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- - - - name: Install pnpm - run: npm install -g pnpm + node-version: ${{ vars.NODE_VERSION }} + cache: 'pnpm' - name: Install project dependencies run: pnpm install