setup-node icon indicating copy to clipboard operation
setup-node copied to clipboard

provide cache datails as outputs

Open sherif-amk opened this issue 1 year ago • 1 comments

actions/setup-node should output cache details such as:

  • path
  • key
  • hits: boolean
  • size
  • last_updated
   steps:
       - name: install NodeJs
        id: node
        uses: actions/setup-node@v3
        with:
          cache: pnpm

      - name: use pnpm cache //<-- may be in another job
        uses: actions/cache
        with:
          path: ${{ step.node.outputs.path }}
          kay: ${{ step.node.outputs.kay }}

sherif-amk avatar Jan 04 '25 12:01 sherif-amk

Hello @sherif-amk 👋, Thank you for this feature request. We will investigate it and get back to you as soon as we have some feedback.

priya-kinthali avatar Jan 06 '25 04:01 priya-kinthali