Skip to content

Commit e86fa32

Browse files
committed
Update GitHub Actions for Node 24
1 parent 481f922 commit e86fa32

1 file changed

Lines changed: 18 additions & 9 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,22 @@ jobs:
1313
env:
1414
ENABLE_DOCUSAURUS_EXPERIMENTAL: 'true'
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
17+
with:
18+
# Self-hosted runner: keep node_modules, .docusaurus and the
19+
# node_modules/.cache/rspack persistent cache between runs.
20+
# The default (clean: true) runs `git clean -ffdx`, which deletes
21+
# all git-ignored files and wipes the rspack/MDX build caches,
22+
# forcing a cold ~2h rebuild every push. clean: false makes
23+
# incremental builds reuse the cache (rspackPersistentCache +
24+
# mdxCrossCompilerCache), so only changed docs are recompiled.
25+
clean: false
1726
- name: Install dependencies
1827
run: npm install
1928
- name: Build
2029
run: npm run build_32g
2130
- name: Upload build artifact
22-
uses: actions/upload-artifact@v4
31+
uses: actions/upload-artifact@v7
2332
with:
2433
name: build-artifact
2534
path: build
@@ -30,9 +39,9 @@ jobs:
3039
# needs: build
3140
# name: Deploy to Cloudflare
3241
# steps:
33-
# - uses: actions/checkout@v4
42+
# - uses: actions/checkout@v5
3443
# - name: Download build artifact
35-
# uses: actions/download-artifact@v4
44+
# uses: actions/download-artifact@v7
3645
# with:
3746
# name: build-artifact
3847
# path: build
@@ -52,26 +61,26 @@ jobs:
5261
needs: build
5362
name: Deploy to GitHub Pages
5463
steps:
55-
- uses: actions/checkout@v4
64+
- uses: actions/checkout@v5
5665
- name: Download build artifact
57-
uses: actions/download-artifact@v4
66+
uses: actions/download-artifact@v7
5867
with:
5968
name: build-artifact
6069
path: build
6170
- name: Deploy to GitHub Pages
62-
uses: actions/upload-pages-artifact@v3 # Updated to v4
71+
uses: actions/upload-pages-artifact@v5
6372
with:
6473
path: build
6574
- name: Deploy to GitHub Pages
6675
id: deployment
67-
uses: actions/deploy-pages@v4
76+
uses: actions/deploy-pages@v5
6877

6978
# submit-url-seo:
7079
# name: Submit URL to IndexNow
7180
# runs-on: ubuntu-latest
7281
# needs: [ build, deploy-github-pages ]
7382
# steps:
74-
# - uses: actions/checkout@v4
83+
# - uses: actions/checkout@v5
7584
# - name: Install Dependencies
7685
# run: pip install requests
7786
# - name: Submit URL to IndexNow

0 commit comments

Comments
 (0)