From cfc0b989d1919e3f062be52c2175fe2e080b92de Mon Sep 17 00:00:00 2001 From: dskvr Date: Thu, 18 Apr 2024 02:26:24 +0200 Subject: [PATCH] move cache step --- .github/workflows/deploy.yaml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 0a8c6d1..93fec8f 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -7,13 +7,6 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v3 - with: - version: 8 - run_install: | - - recursive: true - args: [--frozen-lockfile, --strict-peer-dependencies] - - args: [--global, gulp, prettier, typescript] - name: Cache node modules uses: actions/cache@v2 with: @@ -21,9 +14,14 @@ jobs: key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-npm- - - - name: install dependencies - run: pnpm install + + - uses: pnpm/action-setup@v3 + with: + version: 8 + run_install: | + - recursive: true + args: [--frozen-lockfile, --strict-peer-dependencies] + - args: [--global, prettier, typescript] - name: build run: pnpm build