From 7432e8b13a5fcf1a92a19e11a238de2694552b2d Mon Sep 17 00:00:00 2001 From: Bogdan Yamkovoy Date: Tue, 28 Jan 2025 17:58:04 +0300 Subject: [PATCH] fix 5 --- .github/workflows/deploy.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 29cc32f..16d53ae 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -29,17 +29,25 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' + - uses: actions/cache@v3 + name: Setup pnpm cache + with: + path: | + ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- - uses: pnpm/action-setup@v3 with: version: 8 run_install: false standalone: true dest: ~/setup-pnpm - - run: npm i -g pnpm - - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: pnpm + # Build job build: