Skip to content

Commit 4ce5dca

Browse files
committed
Update Actions to latest version.
Updates to actions to ensure they support node.js 24. GHA will default to this version of node.js in June 2026. This update will fix the following warning message: ``` Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache/restore@v4, fjogeleit/http-request-action@v1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/ ```
1 parent 778b4ce commit 4ce5dca

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ env:
4949
# Specify the deployment environment: staging or production
5050
HUGO_ENVIRONMENT: ${{ vars.HUGO_ENVIRONMENT || 'staging' }}
5151
HUGO_VERSION: 0.155.3
52+
# Temporary to validate Node.js 24 works correctly
53+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true
5254

5355
jobs:
5456
# ----------------------------------------------------------------------------
@@ -65,14 +67,14 @@ jobs:
6567

6668
- name: Get Zotero Version Information
6769
id: zoteroVersion
68-
uses: fjogeleit/http-request-action@v1
70+
uses: fjogeleit/http-request-action@v2
6971
with:
7072
url: https://api.zotero.org/groups/2914042/items?format=versions
7173
method: GET
7274

7375
- name: Cache Zotero Bibliography
7476
id: cache-zotero
75-
uses: actions/cache/restore@v4
77+
uses: actions/cache/restore@v5.0.3
7678
with:
7779
lookup-only: true
7880
path: |
@@ -87,7 +89,7 @@ jobs:
8789
if: github.event_name == 'push' || github.event_name == 'pull_request'
8890
runs-on: ubuntu-latest
8991
steps:
90-
- uses: actions/checkout@v4
92+
- uses: actions/checkout@v6
9193

9294
- name: Check Hugo version consistency
9395
run: |
@@ -121,14 +123,14 @@ jobs:
121123
if: always() && (github.event_name == 'push' || github.event_name == 'pull_request' || needs.check.outputs.cacheHit != 'true') && (needs.validate-docs.result == 'success' || needs.validate-docs.result == 'skipped') && (needs.check.result == 'success' || needs.check.result == 'skipped')
122124
runs-on: ubuntu-latest
123125
steps:
124-
- uses: actions/checkout@v4
126+
- uses: actions/checkout@v6
125127
with:
126128
submodules: recursive
127129
fetch-depth: 0
128130

129131
- name: Cache Zotero Bibliography
130132
id: cache-bib
131-
uses: actions/cache@v4
133+
uses: actions/cache@v5.0.3
132134
with:
133135
path: |
134136
static/data/bibliography.json
@@ -157,9 +159,9 @@ jobs:
157159
uses: actions/configure-pages@v5
158160

159161
- name: Setup Node
160-
uses: actions/setup-node@v4
162+
uses: actions/setup-node@v6
161163
with:
162-
node-version: 18
164+
node-version: 24
163165

164166
- run: npm install -g autoprefixer --save-dev
165167
- run: npm install -g postcss-cli --save-dev
@@ -172,7 +174,7 @@ jobs:
172174
run: hugo --cleanDestinationDir -e $HUGO_ENVIRONMENT
173175

174176
- name: Upload artifact
175-
uses: actions/upload-pages-artifact@v3
177+
uses: actions/upload-pages-artifact@v4
176178
with:
177179
path: ./public
178180

0 commit comments

Comments
 (0)