2929
3030 - name : Get yarn cache directory path
3131 id : yarn-cache-dir-path
32- run : echo "dir=$(yarn config get cacheFolder)" >> "$GITHUB_OUTPUT"
32+ run : echo "dir=$(corepack yarn config get cacheFolder)" >> "$GITHUB_OUTPUT"
3333
3434 - name : Cache Yarn packages
3535 uses : actions/cache@v4
@@ -40,13 +40,13 @@ jobs:
4040 ${{ runner.os }}-yarn-
4141
4242 - name : Install dependencies
43- run : yarn install --immutable
43+ run : corepack yarn install --immutable
4444
4545 - name : Lint
46- run : yarn lint
46+ run : corepack yarn lint
4747
4848 - name : Check formatting
49- run : yarn prettier-check
49+ run : corepack yarn prettier-check
5050
5151 test :
5252 name : Test
6565
6666 - name : Get yarn cache directory path
6767 id : yarn-cache-dir-path
68- run : echo "dir=$(yarn config get cacheFolder)" >> "$GITHUB_OUTPUT"
68+ run : echo "dir=$(corepack yarn config get cacheFolder)" >> "$GITHUB_OUTPUT"
6969
7070 - name : Cache Yarn packages
7171 uses : actions/cache@v4
@@ -76,10 +76,10 @@ jobs:
7676 ${{ runner.os }}-yarn-
7777
7878 - name : Install dependencies
79- run : yarn install --immutable
79+ run : corepack yarn install --immutable
8080
8181 - name : Run tests
82- run : yarn test
82+ run : corepack yarn test
8383
8484 commitlint :
8585 name : Commitlint
@@ -100,7 +100,7 @@ jobs:
100100
101101 - name : Get yarn cache directory path
102102 id : yarn-cache-dir-path
103- run : echo "dir=$(yarn config get cacheFolder)" >> "$GITHUB_OUTPUT"
103+ run : echo "dir=$(corepack yarn config get cacheFolder)" >> "$GITHUB_OUTPUT"
104104
105105 - name : Cache Yarn packages
106106 uses : actions/cache@v4
@@ -111,10 +111,10 @@ jobs:
111111 ${{ runner.os }}-yarn-
112112
113113 - name : Install dependencies
114- run : yarn install --immutable
114+ run : corepack yarn install --immutable
115115
116116 - name : Fetch main for commitlint
117117 run : git fetch origin main --depth=1
118118
119119 - name : Run commitlint
120- run : yarn commitlint --from origin/main
120+ run : corepack yarn commitlint --from origin/main
0 commit comments