From 3524c1c01eb22e84dcaddfd76c3ae81a1187ba11 Mon Sep 17 00:00:00 2001 From: Tommaso Casaburi Date: Thu, 23 Apr 2026 13:32:49 +0700 Subject: [PATCH] fix(release): cache Windows release dependencies --- .github/workflows/release.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 52a672a1..aa35f451 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -188,6 +188,22 @@ jobs: with: node-version: 22 - run: corepack enable + - name: Resolve Yarn cache path + id: yarn-cache + shell: bash + run: echo "dir=$(corepack yarn config get cacheFolder)" >> "$GITHUB_OUTPUT" + - name: Cache Yarn package tarballs + uses: actions/cache@v4 + with: + path: ${{ steps.yarn-cache.outputs.dir }} + key: ${{ runner.os }}-yarn-v1-${{ hashFiles('yarn.lock', 'package.json', '.yarnrc.yml') }} + restore-keys: ${{ runner.os }}-yarn-v1- + - name: Cache electron binaries + uses: actions/cache@v4 + with: + path: ~/AppData/Local/electron/Cache + key: ${{ runner.os }}-electron-v2-${{ hashFiles('**/yarn.lock') }} + restore-keys: ${{ runner.os }}-electron-v2- - name: Install dependencies shell: bash run: |