Description:
In the advanced usage documentation, "Restore-Only Cache" specifies a cache key of ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}.
The actual cache key used is node-cache-${platform}-${arch}-${packageManager}-${fileHash}as defined at https://github.com/actions/setup-node/blob/670825a89dc0abd596e7a3abd0f5e3f6e5faf37c/src/cache-restore.ts#L43C21-L43C70
Action version:
Main
Platform:
N/A
Runner type:
N/A
Tools version:
Repro steps:
A description with steps to reproduce the issue. If you have a public example or repo to share, please provide the link.
Expected behavior:
Documentation reflects action behaviour
Actual behavior:
Documentation contains incorrect information
Description:
In the advanced usage documentation, "Restore-Only Cache" specifies a cache key of
${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}.The actual cache key used is
node-cache-${platform}-${arch}-${packageManager}-${fileHash}as defined at https://github.com/actions/setup-node/blob/670825a89dc0abd596e7a3abd0f5e3f6e5faf37c/src/cache-restore.ts#L43C21-L43C70Action version:
Main
Platform:
N/A
Runner type:
N/A
Tools version:
Repro steps:
A description with steps to reproduce the issue. If you have a public example or repo to share, please provide the link.
Expected behavior:
Documentation reflects action behaviour
Actual behavior:
Documentation contains incorrect information