Skip to content

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

Answered by lkraav
lkraav asked this question in Q&A

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: 2 comments

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
Category
Q&A
Labels
None yet
1 participant