Skip to content

Commit cd5bbd6

Browse files
authored
fix: move files to build cache after files are uploaded instead of copying them before uploads (#753)
* fix: move files to cache after upload instead of copying them before * chore: edit demo site a bit to ensure caching changes continue to work * chore: add heavy files for testing purposes * fix: skip storing build cache when cli is used * revert: remove debug changes * chore: drop debug console logs * fix: also move when restoring cache * test: use older node (for gatsby v3) * fix: restoreCache types * fix: ensure all build step hooks have typed arguments * test: relax content-type check a bit * test: pin netlify-cli * test: use latest v5, log output on failure * chore: upgrade @netlify/build
1 parent ca9a478 commit cd5bbd6

File tree

13 files changed

+4397
-2682
lines changed

13 files changed

+4397
-2682
lines changed

Diff for: .github/workflows/test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@v3
1515
- uses: actions/setup-node@v3
1616
with:
17-
node-version: '*'
17+
node-version: '18'
1818
- name: Global Node packages cache
1919
uses: actions/cache@v3
2020
with:
@@ -29,7 +29,7 @@ jobs:
2929
key:
3030
ubuntu-build-${{ env.cache-name }}-${{
3131
hashFiles('plugin/test/fixtures/**/package.json') }}-node-modules
32-
- run: npm install -g netlify-cli
32+
- run: npm install -g netlify-cli@18.0.0
3333
- run: npm ci
3434
- run: cd plugin && npm ci && npm run build
3535
- run: npm test
@@ -56,7 +56,7 @@ jobs:
5656
key:
5757
macOS-build-${{ env.cache-name }}-${{
5858
hashFiles('plugin/test/fixtures/**/package.json') }}-node-modules
59-
- run: npm install -g netlify-cli
59+
- run: npm install -g netlify-cli@18.0.0
6060
- run: npm ci
6161
- run: cd plugin && npm ci && npm run build
6262
- run: npm test

Diff for: demo-v5/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"dependencies": {
2323
"@sindresorhus/slugify": "^1.1.2",
24-
"gatsby": "next",
24+
"gatsby": "5.11.0",
2525
"gatsby-plugin-image": "next",
2626
"gatsby-plugin-sharp": "next",
2727
"gatsby-source-filesystem": "next",

Diff for: package-lock.json

+1,801-635
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"prettier": "--loglevel=warn \"{plugin,demo,.github}/**/*.{ts,js,md,yml,json,html}\" \"*.{ts,js,yml,json,html}\" \".*.{ts,js,yml,json,html}\" \"!package-lock.json\""
4141
},
4242
"devDependencies": {
43-
"@netlify/build": "^29.36.1",
43+
"@netlify/build": "^29.58.7",
4444
"@netlify/eslint-config-node": "7.0.1",
4545
"@types/jest": "^29.0.0",
4646
"ava": "^5.0.0",

0 commit comments

Comments
 (0)