Skip to content

Incorrect cache key in documentation #1545

Description

@ethan-mills-ukef

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions