From f84302cfbbb970e53204ead416bd851b77ece626 Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 17 Apr 2024 11:23:50 -0400 Subject: ci: setup pnpm cache manually --- .github/workflows/ci.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 386a87f..c3254f4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -29,13 +29,24 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} - cache: "pnpm" - - name: Install package manager + - name: Install pnpm run: | corepack enable corepack prepare --activate + - name: Get store directory + run: | + echo "STORE_PATH=$(pnpm store path --silent)" >> "$GITHUB_ENV" + + - name: Setup pnpm cache + uses: actions/cache@v4 + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- + - name: Install dependencies run: | pnpm install --frozen-lockfile -- cgit v1.2.3