@@ -10,12 +10,16 @@ jobs:
1010
1111 steps :
1212 - name : Check out
13- uses : actions/checkout@v4
13+ uses : actions/checkout@v6
1414 - name : Set up Node
15- uses : actions/setup-node@v4
15+ uses : actions/setup-node@v6
16+ with :
17+ node-version : 22
18+ - name : Enable Corepack
19+ run : corepack enable
1620 - id : cache
1721 name : Yarn Cache Dir
18- run : echo "value =$(yarn cache dir )" >> $GITHUB_OUTPUT
22+ run : echo "cache-dir =$(yarn config get cacheFolder )" >> $GITHUB_OUTPUT
1923 - name : Restore Lockfile
2024 uses : actions/cache@v3
2125 with :
@@ -24,13 +28,13 @@ jobs:
2428 - name : Restore Cache
2529 uses : actions/cache@v3
2630 with :
27- path : ${{ steps.cache.outputs.value }}
28- key : yarn-cache-${{ github.sha }}-node-16
31+ path : ${{ steps.cache.outputs.cache-dir }}
32+ key : yarn-cache-${{ github.sha }}-node-22
2933 - name : Install
30- run : yarn
34+ run : yarn --no-immutable
3135
3236 outputs :
33- cache-dir : ${{ steps.cache.outputs.value }}
37+ cache-dir : ${{ steps.cache.outputs.cache-dir }}
3438
3539 build :
3640 runs-on : ubuntu-latest
3943
4044 steps :
4145 - name : Check out
42- uses : actions/checkout@v4
46+ uses : actions/checkout@v6
4347 - name : Set up Node
44- uses : actions/setup-node@v4
48+ uses : actions/setup-node@v6
49+ with :
50+ node-version : 22
51+ - name : Enable Corepack
52+ run : corepack enable
4553 - name : Restore Lockfile
4654 uses : actions/cache@v3
4755 with :
5159 uses : actions/cache@v3
5260 with :
5361 path : ${{ needs.prepare.outputs.cache-dir }}
54- key : yarn-cache-${{ github.sha }}-node-16
62+ key : yarn-cache-${{ github.sha }}-node-22
5563 - name : Install
56- run : yarn
64+ run : yarn --no-immutable
5765 - name : Build
5866 run : yarn build
5967 - name : Upload Packages
7280
7381 steps :
7482 - name : Check out
75- uses : actions/checkout@v4
83+ uses : actions/checkout@v6
7684 - name : Set up Node
77- uses : actions/setup-node@v4
85+ uses : actions/setup-node@v6
86+ with :
87+ node-version : 22
88+ - name : Enable Corepack
89+ run : corepack enable
7890 - name : Restore Lockfile
7991 uses : actions/cache@v3
8092 with :
@@ -84,13 +96,13 @@ jobs:
8496 uses : actions/cache@v3
8597 with :
8698 path : ${{ needs.prepare.outputs.cache-dir }}
87- key : yarn-cache-${{ github.sha }}-node-16
99+ key : yarn-cache-${{ github.sha }}-node-22
88100 - name : Install
89- run : yarn
101+ run : yarn --no-immutable
90102 - name : Lint
91103 run : yarn lint
92104
93- unit- test :
105+ test :
94106 if : ${{ github.event_name == 'push' || github.event_name == 'pull_request' }}
95107 runs-on : ubuntu-latest
96108 needs :
@@ -99,15 +111,17 @@ jobs:
99111 strategy :
100112 fail-fast : false
101113 matrix :
102- node-version : [18, 20, 22]
114+ node-version : [20, 22]
103115
104116 steps :
105117 - name : Check out
106- uses : actions/checkout@v4
118+ uses : actions/checkout@v6
107119 - name : Set up Node
108- uses : actions/setup-node@v4
120+ uses : actions/setup-node@v6
109121 with :
110122 node-version : ${{ matrix.node-version }}
123+ - name : Enable Corepack
124+ run : corepack enable
111125 - name : Restore Lockfile
112126 uses : actions/cache@v3
113127 with :
@@ -120,7 +134,7 @@ jobs:
120134 key : yarn-cache-${{ github.sha }}-node-${{ matrix.node-version }}
121135 restore-keys : yarn-cache-${{ github.sha }}-node
122136 - name : Install
123- run : yarn
137+ run : yarn --no-immutable
124138 - name : Unit Test
125139 run : yarn test:json
126140 - name : Report Coverage
0 commit comments