summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseth <[email protected]>2024-02-13 03:19:46 -0500
committerseth <[email protected]>2024-02-13 03:19:46 -0500
commit0b3eecc485e808a37b7a8835d16963e323dc3e46 (patch)
tree764c5e128e3db08b7f5b7bfce4d03d17823c5186
parent5ebe23dc3a4a5fb8cb6521b3002f7a136ff88461 (diff)
actions: use setup-node's caching
-rw-r--r--.github/workflows/ci.yaml22
1 files changed, 4 insertions, 18 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 28fd567..67ae243 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -25,28 +25,14 @@ jobs:
steps:
- uses: actions/checkout@v4
- - name: Setup node.js
- uses: actions/setup-node@v4
- with:
- node-version: ${{ env.NODE_VERSION }}
-
- name: Setup pnpm
uses: pnpm/action-setup@v3
- - name: Get pnpm store directory
- id: store-path
- run: |
- echo "STORE_PATH=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT"
-
- - name: Setup pnpm cache
- uses: actions/cache@v4
- env:
- STORE_PATH: ${{ steps.store-path.outputs.STORE_PATH }}
+ - name: Setup node.js
+ uses: actions/setup-node@v4
with:
- path: ${{ env.STORE_PATH }}
- key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
- restore-keys: |
- ${{ runner.os }}-pnpm-store-
+ node-version: ${{ env.NODE_VERSION }}
+ cache: "pnpm"
- name: Install dependencies
run: |