Skip to content

Commit 360a8e0

Browse files
authored
Merge pull request #1419 from limzykenneth/main-ci-update
[1.x] Update CI node version to 24
2 parents 5ba3dff + c194f4d commit 360a8e0

8 files changed

Lines changed: 38 additions & 38 deletions

File tree

.github/workflows/beta_deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
steps:
2121
- uses: actions/setup-node@v6.3.0
2222
with:
23-
node-version: 22.22.x
23+
node-version: 24
2424
- name: Checkout your repository using git
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@v6
2626
- name: Install dependencies
2727
run: npm ci
2828
- name: Build website

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
steps:
2121
- uses: actions/setup-node@v6.3.0
2222
with:
23-
node-version: 22.22.x
23+
node-version: 24
2424
- name: Checkout your repository using git
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@v6
2626
- name: Install dependencies
2727
run: npm ci
2828
- name: Build website

.github/workflows/test.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout your repository using git
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v6
1515
- name: Setup Node.js
16-
uses: actions/setup-node@v4
16+
uses: actions/setup-node@v6
1717
with:
18-
node-version: '22'
18+
node-version: 24
1919
- name: Install dependencies
2020
run: npm ci
2121
- name: Test
@@ -24,11 +24,11 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: Checkout your repository using git
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@v6
2828
- name: Setup Node.js
29-
uses: actions/setup-node@v4
29+
uses: actions/setup-node@v6
3030
with:
31-
node-version: '22'
31+
node-version: 24
3232
- name: Install dependencies
3333
run: npm ci
3434
- name: Lint
@@ -37,11 +37,11 @@ jobs:
3737
runs-on: ubuntu-latest
3838
steps:
3939
- name: Checkout your repository using git
40-
uses: actions/checkout@v4
40+
uses: actions/checkout@v6
4141
- name: Setup Node.js
42-
uses: actions/setup-node@v4
42+
uses: actions/setup-node@v6
4343
with:
44-
node-version: '22'
44+
node-version: 24
4545
- name: Install dependencies
4646
run: npm ci
4747
- name: Typecheck
@@ -51,11 +51,11 @@ jobs:
5151
needs: test
5252
steps:
5353
- name: Checkout your repository using git
54-
uses: actions/checkout@v4
54+
uses: actions/checkout@v6
5555
- name: Setup Node.js
56-
uses: actions/setup-node@v4
56+
uses: actions/setup-node@v6
5757
with:
58-
node-version: '22'
58+
node-version: 24
5959
- name: Install dependencies
6060
run: npm ci
6161
- name: Build

.github/workflows/translation-sync.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,25 @@ permissions:
1616
jobs:
1717
track-translation-changes:
1818
runs-on: ubuntu-latest
19-
19+
2020
steps:
2121
- name: Checkout repository
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@v6
2323
with:
2424
fetch-depth: 2 # Fetch previous commit to compare changes
25-
25+
2626
- name: Setup Node.js
27-
uses: actions/setup-node@v4
27+
uses: actions/setup-node@v6
2828
with:
29-
node-version: '22'
30-
29+
node-version: 24
30+
3131
- name: Install dependencies
3232
run: npm ci
33-
33+
3434
- name: Install translation tracker dependencies
3535
run: cd .github/actions/translation-tracker && npm install
36-
36+
3737
- name: Run translation tracker
3838
env:
3939
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40-
run: node .github/actions/translation-tracker/index.js
40+
run: node .github/actions/translation-tracker/index.js

src/scripts/builders/contribute.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { readdir, rm } from "fs/promises";
2-
import path from "path";
1+
import { readdir, rm } from "node:fs/promises";
2+
import path from "node:path";
33
import {
44
cloneLibraryRepo,
55
copyDirectory,
@@ -10,7 +10,7 @@ import {
1010
rewriteRelativeMdLinks,
1111
writeFile,
1212
} from "../utils";
13-
import type { Dirent } from "fs";
13+
import type { Dirent } from "node:fs";
1414
import { remark } from "remark";
1515
import remarkMDX from "remark-mdx";
1616
import remarkGfm from "remark-gfm";

src/scripts/builders/search.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { promises as fs } from "fs";
2-
import path from "path";
1+
import { promises as fs } from "node:fs";
2+
import path from "node:path";
33
import matter from "gray-matter";
44
import type {
55
ContentType,

src/scripts/parsers/reference.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { cloneLibraryRepo,cleanUpDirectory, p5RepoUrl, readFile } from "../utils";
2-
import fs from "fs/promises";
3-
import { exec, execSync } from "child_process";
4-
import path from "path";
5-
import { fileURLToPath } from "url";
2+
import fs from "node:fs/promises";
3+
import { exec, execSync } from "node:child_process";
4+
import path from "node:path";
5+
import { fileURLToPath } from "node:url";
66
import type { ParsedLibraryReference } from "../../../types/parsers.interface";
77
import { p5Version } from "@/src/globals/p5-version";
88

src/scripts/utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import simpleGit from "simple-git";
2-
import fs, { cp, readdir } from "fs/promises";
3-
import path from "path";
4-
import type { CopyOptions, Dirent } from "fs";
5-
import { fileURLToPath } from "url";
2+
import fs, { cp, readdir } from "node:fs/promises";
3+
import path from "node:path";
4+
import type { CopyOptions, Dirent } from "node:fs";
5+
import { fileURLToPath } from "node:url";
66
import { rewriteRelativeLink } from "../pages/_utils-node";
77
import { p5Version } from "../globals/p5-version";
88

0 commit comments

Comments
 (0)