We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82bf5eb commit 18777ceCopy full SHA for 18777ce
1 file changed
.github/workflows/ci.yml
@@ -93,8 +93,25 @@ jobs:
93
node-version: "24"
94
cache: pnpm
95
96
+ - name: Cache Electron binary
97
+ uses: actions/cache@v5
98
+ with:
99
+ path: ~/.cache/electron
100
+ key: electron-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
101
+ restore-keys: |
102
+ electron-${{ runner.os }}-
103
+
104
- name: Install dependencies
- run: pnpm install --frozen-lockfile
105
+ run: |
106
+ for attempt in 1 2 3; do
107
+ if pnpm install --frozen-lockfile; then
108
+ exit 0
109
+ fi
110
+ echo "::warning::pnpm install failed on attempt $attempt; retrying in 15s"
111
+ sleep 15
112
+ done
113
+ echo "::error::pnpm install failed after 3 attempts"
114
+ exit 1
115
116
- name: Test
117
run: pnpm run test
0 commit comments