Skip to content

Commit 6fa7941

Browse files
committed
Update to Node.js 24
Build the site using version 24. Replace deprecated `node-sass` with `sass` and migrate accordingly. Update workflows to use 24 and update the action `setup-node` to latest version. Signed-off-by: thc202 <thc202@gmail.com>
1 parent c0137c4 commit 6fa7941

File tree

15 files changed

+521
-1993
lines changed

15 files changed

+521
-1993
lines changed

.github/workflows/check-dist-update-website.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
- uses: actions/checkout@v5
2323

2424
- name: Set Node.js
25-
uses: actions/setup-node@v4
25+
uses: actions/setup-node@v5
2626
with:
27-
node-version: 20.x
27+
node-version: 24
2828

2929
- name: Install dependencies
3030
run: npm ci

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
- run: sudo apt-get update && sudo apt-get install -y nginx && sudo systemctl start nginx
1313

1414
- name: Install node.js
15-
uses: actions/setup-node@v4
15+
uses: actions/setup-node@v5
1616
with:
17-
node-version: '20'
17+
node-version: '24'
1818

1919
- name: Install npm dependencies
2020
run: npm install

.github/workflows/update-website.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Setup node
14-
uses: actions/setup-node@v4
14+
uses: actions/setup-node@v5
1515
with:
16-
node-version: '20'
16+
node-version: '24'
1717
- name: Checkout
1818
uses: actions/checkout@v5
1919
with:

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20
1+
24

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18
1+
FROM node:24
22

33
COPY package-lock.json package.json /app/
44

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ use the `site/static` folder. Images, font-files, etc, all go there. Files in th
205205
will end up being available as `/favicon.ico` and so on...
206206

207207
##### CSS/SCSS
208-
All the CSS is written in SCSS ("Sassy CSS") with all the files in `src/css/` with `src/css/main.css` being the entrypoint, defining main variables & importing the needed styles.
208+
All the CSS is written in SCSS ("Sassy CSS") with all the files in `src/css/` with `src/css/main.scss` being the entrypoint, defining main variables & importing the needed styles.
209209

210210
Styles are separated by broad category, component and post specific styles. For example, if you need to change the typography across the entire site, `src/css/_type.scss` is the file to edit.
211211

0 commit comments

Comments
 (0)