From 8958372716791efd7b5deea4c1300d0c7334ef3e Mon Sep 17 00:00:00 2001 From: Julia McGhee Date: Sat, 21 Mar 2026 17:53:16 +0000 Subject: [PATCH] Fix cache: combine export + pnpm install in single step --- .gitea/workflows/ci.yaml | 13 +++---------- .gitea/workflows/deploy-preview.yaml | 5 +---- .gitea/workflows/deploy-production.yaml | 5 +---- 3 files changed, 5 insertions(+), 18 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 0166e61..554941d 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -16,18 +16,14 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Setup pnpm + - name: Setup and install run: | export COREPACK_HOME=/pnpm-store/.corepack corepack enable && corepack prepare pnpm@latest --activate - - - name: Install dependencies - run: | export PNPM_STORE_DIR=/pnpm-store pnpm install --frozen-lockfile - - name: Lint and test - run: pnpm turbo lint test + - run: pnpm turbo lint test build: needs: [lint-and-test] @@ -37,13 +33,10 @@ jobs: with: fetch-depth: 0 - - name: Setup pnpm + - name: Setup and install run: | export COREPACK_HOME=/pnpm-store/.corepack corepack enable && corepack prepare pnpm@latest --activate - - - name: Install dependencies - run: | export PNPM_STORE_DIR=/pnpm-store pnpm install --frozen-lockfile diff --git a/.gitea/workflows/deploy-preview.yaml b/.gitea/workflows/deploy-preview.yaml index c08816b..25c7bd3 100644 --- a/.gitea/workflows/deploy-preview.yaml +++ b/.gitea/workflows/deploy-preview.yaml @@ -10,13 +10,10 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Setup pnpm + - name: Setup and install run: | export COREPACK_HOME=/pnpm-store/.corepack corepack enable && corepack prepare pnpm@latest --activate - - - name: Install dependencies - run: | export PNPM_STORE_DIR=/pnpm-store pnpm install --frozen-lockfile diff --git a/.gitea/workflows/deploy-production.yaml b/.gitea/workflows/deploy-production.yaml index f81832d..309feef 100644 --- a/.gitea/workflows/deploy-production.yaml +++ b/.gitea/workflows/deploy-production.yaml @@ -18,13 +18,10 @@ jobs: with: fetch-depth: 2 - - name: Setup pnpm + - name: Setup and install run: | export COREPACK_HOME=/pnpm-store/.corepack corepack enable && corepack prepare pnpm@latest --activate - - - name: Install dependencies - run: | export PNPM_STORE_DIR=/pnpm-store pnpm install --frozen-lockfile