File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6767 registry-url : ' https://registry.npmjs.org'
6868
6969 - name : Update npm
70- run : npm install -g npm@latest
70+ run : corepack enable npm && corepack prepare npm@11 --activate
7171
7272 - name : Deprecate package versions
7373 env :
Original file line number Diff line number Diff line change 2222 with :
2323 node-version : 22
2424
25- - name : Upgrade to latest
26- run : npm install -g npm@latest
27-
2825 # This is needed to match the npm version used when publishing
26+ - name : Update npm
27+ run : corepack enable npm && corepack prepare npm@11 --activate
2928 - name : Regenerate lockfile
3029 run : npm install --package-lock-only --ignore-scripts
3130
Original file line number Diff line number Diff line change 8484 cache : ' npm'
8585 registry-url : ' https://registry.npmjs.org'
8686
87- # Ensure npm 11.5.1 or later is installed for trusted publishing support
8887 - name : Update npm
89- run : npm install -g npm@latest
88+ run : corepack enable npm && corepack prepare npm@11 --activate
9089
9190 - name : Install dependencies
9291 run : npm ci
@@ -257,7 +256,7 @@ jobs:
257256 registry-url : ' https://registry.npmjs.org'
258257
259258 - name : Update npm
260- run : npm install -g npm@latest
259+ run : corepack enable npm && corepack prepare npm@11 --activate
261260
262261 - name : Install dependencies
263262 run : npm ci
@@ -378,9 +377,8 @@ jobs:
378377 cache : ' npm'
379378 registry-url : ' https://registry.npmjs.org'
380379
381- # Ensure npm 11.5.1 or later is installed for trusted publishing support
382380 - name : Update npm
383- run : npm install -g npm@latest
381+ run : corepack enable npm && corepack prepare npm@11 --activate
384382 - name : Install dependencies
385383 run : npm ci
386384 - name : Configure git
You can’t perform that action at this time.
0 commit comments