@@ -152,31 +152,34 @@ jobs:
152152 xvfb
153153 # asdf nodejs plugin requires: dirmngr gpg curl gawk
154154
155- - name : Setup node.js
155+ - name : Install pnpm # keep before setup-node
156+ uses : pnpm/action-setup@v4
157+ with :
158+ version : 10
159+ run_install : false
160+
161+ - name : Install node.js
156162157163 with :
158164 node-version : 20
159- # yarn cache is broken due https://github.com/actions/setup-node/issues/531
160- # cache: yarn
165+ cache : pnpm
161166
162- - name : Corepack enable
163- run : corepack enable
167+ - name : Install node dependencies
168+ run : pnpm install
164169
165170 - name : Enable caching
166171 uses : actions/cache@v4
167172 with :
168173 path : |
169174 .vscode-test
170- .yarn/cache
171175 node_modules/.cache/webpack
172176 out/ext
173177 out/test-resources*/Visual Studio Code.app
174178 out/test-resources*/chromedriver*
175179 out/test-resources*/driverVersion
176180 out/test-resources*/stable.zip
177181 ~/.cache/pip
178- ~/.cache/yarn
179- key : ${{ runner.os }}-${{ matrix.task-name }}-${{ hashFiles('package.json', 'yarn.lock', '.config/requirements.txt', 'tools/*.*') }}
182+ key : ${{ runner.os }}-${{ matrix.task-name }}-${{ hashFiles('package.json', 'pnpm-lock.yaml', '.config/requirements.txt', 'tools/*.*') }}
180183
181184 # - name: Enable caching for podman-machine
182185 # if: "contains(matrix.os, 'macos')"
@@ -185,7 +188,7 @@ jobs:
185188 # path: |
186189 # ~/.local/share/containers
187190 # ~/.config/containers
188- # key: ${{ runner.os }}-${{ matrix.task-name }}-${{ hashFiles('package.json', 'yarn. lock', '.config/requirements.txt', '**/Taskfile.yml', 'tools/*.*') }}
191+ # key: ${{ runner.os }}-${{ matrix.task-name }}-${{ hashFiles('package.json', 'pnpm- lock.yaml ', '.config/requirements.txt', '**/Taskfile.yml', 'tools/*.*') }}
189192
190193 - name : Setup task
191194 uses : arduino/setup-task@v2
@@ -242,12 +245,6 @@ jobs:
242245 # Ensure NODE_OPTIONS config on CI is identical with the one in .env
243246 [[ "${NODE_OPTIONS:-}" == "$(direnv exec . printenv NODE_OPTIONS)" ]] || { echo "NODE_OPTIONS mismatch between .env and ci.yaml"; exit 97; }
244247
245- - name : Install dependencies
246- uses : coactions/actions/yarn-install@fix/install
247- # backstage/actions/yarn-install@b3c1841fd69e1658ac631afafd0fb140a2309024 # v0.6.17
248- with :
249- cache-prefix : ${{ runner.os }}-v${{ matrix.node-version }}
250-
251248 - name : task setup
252249 # starting podman machine can randomly get stuck on macos
253250 timeout-minutes : 25
@@ -515,8 +512,7 @@ jobs:
515512 - name : Install Node
516513 uses : actions/setup-node@v4
517514 with :
518- cache : yarn
519- cache-dependency-path : " **/yarn.lock"
515+ cache : pnpm
520516 node-version-file : .tool-versions
521517
522518 - name : Download the artifact
@@ -532,7 +528,7 @@ jobs:
532528 files : " *.vsix"
533529
534530 - run : |
535- npm exec -- yarn install --immutable
531+ npm exec -- pnpm install --immutable
536532 ls -la *.vsix
537533
538534 - name : Setup python
@@ -563,8 +559,7 @@ jobs:
563559 # Setup .npmrc file to publish to npm
564560 - uses : actions/setup-node@v4
565561 with :
566- cache : yarn
567- cache-dependency-path : " **/yarn.lock"
562+ cache : pnpm
568563 node-version-file : .tool-versions
569564 registry-url : " https://registry.npmjs.org"
570565
0 commit comments