Skip to content

Commit

Permalink
Update cache path (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikBolding authored Sep 11, 2023
1 parent 2cbc3be commit 335c4e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
uses: actions/cache@v3
with:
path: |
.cache/npm
node_modules/.cache/npm
key: npm-tarballs-${{ github.run_id }}
restore-keys: |
npm-tarballs
Expand Down
4 changes: 2 additions & 2 deletions gatsby-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ async function getRegistry() {
};

const cachedTarballFetch = fetchBuilder.withCache(
new FileSystemCache({ cacheDirectory: '.cache/npm/tarballs' }),
new FileSystemCache({ cacheDirectory: 'node_modules/.cache/npm/tarballs' }),
);

const fetchCachePath = '.cache/npm/fetch';
const fetchCachePath = 'node_modules/.cache/npm/fetch';
const cachedFetch = fetchBuilder.withCache(
new FileSystemCache({ cacheDirectory: fetchCachePath }),
);
Expand Down

0 comments on commit 335c4e0

Please sign in to comment.