File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 node-version : ${{ matrix.node-version }}
2424 # setup-node must be called twice to correctly cache corepack-managed npm.
2525 # See: https://github.com/actions/setup-node/issues/531#issuecomment-3335630863
26+ # `corepack@latest` must be installed before `corepack enable npm` to avoid
27+ # signature verification errors against rotated npm registry keys.
28+ # See: https://github.com/nodejs/corepack/issues/612
2629 - name : Enable Corepack
2730 shell : bash
28- run : corepack enable npm
31+ run : |
32+ npm install --global corepack@latest
33+ corepack enable npm
2934 - uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
3035 with :
3136 cache : npm
Original file line number Diff line number Diff line change 1919 registry-url : ' https://registry.npmjs.org'
2020 # setup-node must be called twice to correctly cache corepack-managed npm.
2121 # See: https://github.com/actions/setup-node/issues/531#issuecomment-3335630863
22+ # `corepack@latest` must be installed before `corepack enable npm` to avoid
23+ # signature verification errors against rotated npm registry keys.
24+ # See: https://github.com/nodejs/corepack/issues/612
2225 - name : Enable Corepack
2326 shell : bash
24- run : corepack enable npm
27+ run : |
28+ npm install --global corepack@latest
29+ corepack enable npm
2530 - uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2631 with :
2732 cache : npm
You can’t perform that action at this time.
0 commit comments