Skip to content

Cache Key Doesn't Change After Modifying Files #1558

Answered by sijunnoh
sijunnoh asked this question in Q&A

You must be logged in to vote

I modified the cache key from ${{ runner.os }}-nextjs-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} to ${{ runner.os }}-nextjs-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/*.[jt]s', '**/*.[jt]sx') }}.

Now cache key updates as expected. Thanks for the help! @JoannaaKL

Replies: 1 comment 2 replies

You must be logged in to vote
2 replies
@sijunnoh

@sijunnoh

Answer selected by sijunnoh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants