3838 with :
3939 distribution : " zulu"
4040 java-version : " 8"
41+ - name : Enable Corepack
42+ run : corepack enable
4143 - name : Set up Node LTS
4244 uses : actions/setup-node@v6
4345 with :
6466 # Prepare dependencies and build
6567 - name : Install Dependencies
6668 run : |-
67- yarn install --frozen-lockfile
69+ yarn install --immutable
6870 - name : Full Build
6971 run : |-
7072 yarn build
8082 .
8183 # Upload artifact (we'll tar it up to save time)
8284 - name : " Upload Artifact: built-tree"
83- uses : actions/upload-artifact@v6
85+ uses : actions/upload-artifact@v7
8486 with :
8587 name : built-tree
8688 path : ${{ runner.temp }}/built-tree.tgz
@@ -120,6 +122,8 @@ jobs:
120122 with :
121123 distribution : " zulu"
122124 java-version : " 8"
125+ - name : Enable Corepack
126+ run : corepack enable
123127 - name : Set up Node LTS
124128 uses : actions/setup-node@v6
125129 with :
@@ -145,7 +149,7 @@ jobs:
145149 ${{ runner.os }}-
146150 # Prepare dependencies and build
147151 - name : Install Dependencies
148- run : yarn install --frozen-lockfile
152+ run : yarn install --immutable
149153 # Determine a prerelease version (depending on whether this is a PR or Push event)
150154 - name : Standard Version (PR)
151155 if : github.event_name == 'pull_request'
@@ -173,7 +177,7 @@ jobs:
173177 yarn package
174178 # Upload artifacts
175179 - name : " Upload Artifact: release-package"
176- uses : actions/upload-artifact@v6
180+ uses : actions/upload-artifact@v7
177181 with :
178182 name : release-package
179183 path : ${{ github.workspace }}/dist/
@@ -324,7 +328,7 @@ jobs:
324328 steps :
325329 # Check out the code
326330 - name : Download Artifact
327- uses : actions/download-artifact@v7
331+ uses : actions/download-artifact@v8
328332 with :
329333 name : built-tree
330334 - name : Extract Artifact
@@ -348,6 +352,16 @@ jobs:
348352 with :
349353 distribution : " zulu"
350354 java-version : ${{ matrix.java }}
355+ - name : Enable Corepack
356+ # The pre-installed Yarn Classic shims on Windows GHA runners shadow
357+ # Corepack's yarn proxy. Re-installing corepack globally replaces them.
358+ # See: https://github.com/actions/setup-node/issues/531
359+ shell : bash
360+ run : |
361+ if [[ "$RUNNER_OS" == "Windows" ]]; then
362+ npm install -g corepack@0.34.6 --force
363+ fi
364+ corepack enable
351365 - name : Set up Node ${{ matrix.node }}
352366 uses : actions/setup-node@v6
353367 with :
@@ -364,7 +378,7 @@ jobs:
364378 - if : runner.os == 'Windows'
365379 name : Windows performance improvements
366380 run : |-
367- yarn config set cache-folder D:\a\_temp\yarn
381+ yarn config set cacheFolder D:\a\_temp\yarn
368382 echo "TEMP=D:\a\_temp" >> $env:GITHUB_ENV
369383 - name : Cache
370384 uses : actions/cache@v5
@@ -381,7 +395,7 @@ jobs:
381395 # Run the tests
382396 - name : Install Dependencies
383397 run : |-
384- yarn install --frozen-lockfile
398+ yarn install --immutable
385399 - name : Test
386400 run : |-
387401 yarn test
@@ -422,7 +436,7 @@ jobs:
422436 steps :
423437 # Check out the code
424438 - name : Download Artifact
425- uses : actions/download-artifact@v7
439+ uses : actions/download-artifact@v8
426440 with :
427441 name : release-package
428442 path : ${{ runner.temp }}/release-package
@@ -474,7 +488,7 @@ jobs:
474488 # Upload artifact only on main and for latest rosetta
475489 - name : " Upload Artifact: integtest_aws-cdk-lib"
476490 if : github.ref == 'ref/head/main' && matrix.rosetta == 'latest'
477- uses : actions/upload-artifact@v6
491+ uses : actions/upload-artifact@v7
478492 with :
479493 name : integtest_aws-cdk-lib
480494 path : ./node_modules/aws-cdk-lib/dist/
0 commit comments