4444 sudo update-rc.d xvfb defaults
4545 sudo service xvfb start
4646
47- - uses : actions/setup-node@v3
47+ - uses : actions/setup-node@v4
4848 with :
49- node-version : 20
50-
51- - name : prepare
52- run : |
53- npm install -g node-gyp
49+ node-version-file : .nvmrc
5450
5551 - name : Sync with upstream (rebase)
5652 run : |
@@ -61,33 +57,31 @@ jobs:
6157 run : echo "value=$(node build/azure-pipelines/common/computeNodeModulesCacheKey.js)" >> $GITHUB_OUTPUT
6258 - name : Cache node modules
6359 id : cacheNodeModules
64- uses : actions/cache@v3
60+ uses : actions/cache@v4
6561 with :
6662 path : " **/node_modules"
6763 key : ${{ runner.os }}-cacheNodeModulesLinux-${{ steps.nodeModulesCacheKey.outputs.value }}
68- - name : Get yarn cache directory path
69- id : yarnCacheDirPath
64+ - name : Get npm cache directory path
65+ id : npmCacheDirPath
7066 if : ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}
71- run : echo "dir=$(yarn cache dir )" >> $GITHUB_OUTPUT
72- - name : Cache yarn directory
67+ run : echo "dir=$(npm config get cache )" >> $GITHUB_OUTPUT
68+ - name : Cache npm directory
7369 if : ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}
74- uses : actions/cache@v3
70+ uses : actions/cache@v4
7571 with :
76- path : ${{ steps.yarnCacheDirPath .outputs.dir }}
77- key : ${{ runner.os }}-yarnCacheDir -${{ steps.nodeModulesCacheKey.outputs.value }}
78- restore-keys : ${{ runner.os }}-yarnCacheDir -
79- - name : Execute yarn
72+ path : ${{ steps.npmCacheDirPath .outputs.dir }}
73+ key : ${{ runner.os }}-npmCacheDir -${{ steps.nodeModulesCacheKey.outputs.value }}
74+ restore-keys : ${{ runner.os }}-npmCacheDir -
75+ - name : Execute npm
8076 if : ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}
8177 env :
8278 PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD : 1
8379 ELECTRON_SKIP_BINARY_DOWNLOAD : 1
84- run : yarn --frozen-lockfile --network-timeout 180000
80+ run : npm ci
8581
8682 - name : Compile
8783 run : |
88- yarn npm-run-all --max_old_space_size=4095 -lp compile playwright-install download-builtin-extensions
89- env :
90- DISABLE_V8_COMPILE_CACHE : 1
84+ npm exec -- npm-run-all -lp compile playwright-install download-builtin-extensions
9185
9286 - name : Push changes
9387 run : |
9993 echo "$(git rev-parse ${{ env.PARENT_COMMIT }})" > __upstream_commit.txt
10094 - name : Upload parent commit file
10195 if : ${{ success() }}
102- uses : actions/upload-artifact@v3
96+ uses : actions/upload-artifact@v4
10397 with :
10498 name : upstream_commit
10599 path : __upstream_commit.txt
0 commit comments