Skip to content

How do I retrieve with.path value in another step? #160606

Answered by lkraav
lkraav asked this question in Actions

You must be logged in to vote

Going with jobs.<id>.env seems to do what I want well

...
jobs:
  eslint:
    runs-on: ubuntu-latest
    env:
      # Following official recommendation to just cache `~/.npm` is a performance nightmare.
      # It takes `npm ci` 3 min to complete 3000+ packages, 1.5G of data.
      # Restoring compressed ~150MB `node_modules` from cache takes 10 sec.
      #
      # @see https://github.com/npm/cli/issues/2011
      # @see https://github.com/npm/cli/issues/3208
      NODE_MODULES_PATHS: |
        node_modules
        apps/*/node_modules
        packages/lib/node_modules
        packages/lib/client/node_modules
        packages/lib/server/node_modules

    steps:
      - uses: actions/check…

Replies: 0 comments 2 replies

You must be logged in to vote
0 replies
Answer selected by lkraav
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Cache For topics related to the actions/cache action in GitHub workflows Transferred These are discussions that have recently Transferred from another org/repo
1 participant