Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

fix: update pnpm caching setup in workflows for improved performance

AykutSarac60643bcbc202
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index f8260f09..8764241d 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -28,8 +28,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "24.10.0"
- cache: pnpm
- cache-dependency-path: pnpm-lock.yaml
- uses: pnpm/action-setup@v4
name: Install pnpm
@@ -37,6 +35,19 @@ jobs:
version: 10.10.0
run_install: false
+ - name: Get pnpm store directory
+ shell: bash
+ run: |
+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
+
+ - uses: actions/cache@v4
+ name: Setup pnpm cache
+ with:
+ path: ${{ env.STORE_PATH }}
+ key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
+ restore-keys: |
+ ${{ runner.os }}-pnpm-store-
+
- name: Setup Pages
uses: actions/configure-pages@v4
with:
diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml
index 0f703735..38fc7534 100644
--- a/.github/workflows/pull-request.yml
+++ b/.github/workflows/pull-request.yml
@@ -16,8 +16,6 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 20
- cache: pnpm
- cache-dependency-path: pnpm-lock.yaml
- uses: pnpm/action-setup@v2
name: Install pnpm
@@ -25,6 +23,19 @@ jobs:
version: 8
run_install: false
+ - name: Get pnpm store directory
+ shell: bash
+ run: |
+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
+
+ - uses: actions/cache@v4
+ name: Setup pnpm cache
+ with:
+ path: ${{ env.STORE_PATH }}
+ key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
+ restore-keys: |
+ ${{ runner.os }}-pnpm-store-
+
- name: Restore Next.js cache
uses: actions/cache@v4
with: