diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ed4da6df5e9dba17a35d507d193c4a57f06122f5..84f3cda83a5fa11b5d86e1e92cac0783033b5b90 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -70,7 +70,7 @@ jobs:
         id: cache
         with:
           path: '**/node_modules'
-          key: yarn-v1-${{ hashFiles('**/yarn.lock') }}
+          key: yarn-v1-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
       - name: Install
         run: yarn --immutable
         if: steps.cache.outputs.cache-hit != 'true'