@@ -14,62 +14,50 @@ jobs:
1414 steps :
1515 - uses : actions/checkout@v2
1616
17- - name : Use Node.js 14
18- uses : actions/setup-node@v1
17+ - uses : pnpm/action-setup@v2
1918 with :
20- node-version : 14.x
21-
22- - name : Get yarn cache directory path
23- id : yarn-cache-dir-path
24- run : echo "::set-output name=dir::$(yarn config get cacheFolder)"
19+ version : 6.24.1
2520
26- - uses : actions/cache@v2
27- id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
21+ - name : Use Node.js 14
22+ uses : actions/setup-node@v2
2823 with :
29- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
30- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
31- restore-keys : |
32- ${{ runner.os }}-yarn-
24+ node-version : 14.x
25+ cache : ' pnpm'
3326
34- - run : yarn install --immutable
27+ - name : Install dependencies
28+ run : pnpm install
3529
3630 - name : Compile create-react-app examples using react-scripts
3731 run : |
38- yarn workspaces foreach --include "with-*" run build-react-scripts
32+ pnpm run build-react-scripts --filter "with-*"
3933
4034 - name : Test create-react-app examples using react-scripts
4135 run : |
42- yarn workspaces foreach --include "with-*" run test-react-scripts
36+ pnpm run test-react-scripts --filter "with-*"
4337
4438 test :
4539 runs-on : ubuntu-latest
4640
4741 steps :
4842 - uses : actions/checkout@v2
4943
50- - name : Use Node.js 14
51- uses : actions/setup-node@v1
44+ - uses : pnpm/action-setup@v2
5245 with :
53- node-version : 14.x
54-
55- - name : Get yarn cache directory path
56- id : yarn-cache-dir-path
57- run : echo "::set-output name=dir::$(yarn config get cacheFolder)"
46+ version : 6.24.1
5847
59- - uses : actions/cache@v2
60- id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
48+ - name : Use Node.js 14
49+ uses : actions/setup-node@v2
6150 with :
62- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
63- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
64- restore-keys : |
65- ${{ runner.os }}-yarn-
51+ node-version : 14.x
52+ cache : ' pnpm'
6653
67- - run : yarn install --immutable
54+ - name : Install dependencies
55+ run : pnpm install
6856
6957 - name : Compile create-react-app examples using craco
7058 run : |
71- yarn workspaces foreach --include "with-*" run build
59+ pnpm run build --filter "with-*"
7260
7361 - name : Test create-react-app examples using craco
7462 run : |
75- yarn workspaces foreach --include "with-*" run test
63+ pnpm run test --filter "with-*"
0 commit comments