@@ -15,18 +15,19 @@ jobs:
1515 runs-on : ubuntu-latest
1616
1717 steps :
18- - uses : actions/checkout@v4
18+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1919
20- - uses : actions/setup-node@v4
20+ - uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
2121 with :
2222 node-version : lts/*
23+ env :
24+ SKIP_YARN_COREPACK_CHECK : 1
2325
2426 - name : Get the Yarn cache directory path
2527 id : yarn-cache-dir-path
26- run : echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT
27- shell : bash
28+ run : echo "dir=$(corepack yarn config get cacheFolder)" >> "$GITHUB_OUTPUT"
2829
29- - uses : actions/cache@v4
30+ - uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
3031 with :
3132 path : ${{steps.yarn-cache-dir-path.outputs.dir}}
3233 key : ${{runner.os}}-yarn-${{hashFiles('**/yarn.lock')}}
@@ -65,19 +66,21 @@ jobs:
6566 runs-on : ${{matrix.platform}}
6667
6768 steps :
68- - uses : actions/checkout@v4
69+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
6970
7071 - name : " Use Node.js ${{matrix.node}}.x"
71- uses : actions/setup-node@v4
72+ uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
7273 with :
7374 node-version : ${{matrix.node}}.x
75+ env :
76+ SKIP_YARN_COREPACK_CHECK : 1
7477
7578 - name : Get the Yarn cache directory path
7679 id : yarn-cache-dir-path
77- run : echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT
78- shell : bash
80+ run : echo "dir=$(corepack yarn config get cacheFolder)" >> " $GITHUB_OUTPUT"
81+ shell : bash # Needs explicit bash for Windows-support
7982
80- - uses : actions/cache@v4
83+ - uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
8184 with :
8285 path : ${{steps.yarn-cache-dir-path.outputs.dir}}
8386 key : ${{runner.os}}-yarn-${{hashFiles('**/yarn.lock')}}
0 commit comments