diff options
| author | seth <[email protected]> | 2024-04-17 11:23:50 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-04-17 11:23:50 -0400 |
| commit | f84302cfbbb970e53204ead416bd851b77ece626 (patch) | |
| tree | 5422673fcea6d51d0b7fd46a4c3b287eb64add0b /.github/workflows | |
| parent | c836cda3d534de6e59ef54ef29fb615202b889cf (diff) | |
ci: setup pnpm cache manually
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ci.yaml | 15 |
1 files changed, 13 insertions, 2 deletions
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 |
