Skip to content

Commit 458e40a

Browse files
authored
chore: bump node to v20 in CI and add engines field (#910)
Closes #908
1 parent 82d6da5 commit 458e40a

File tree

7 files changed

+23
-17
lines changed

7 files changed

+23
-17
lines changed

.github/workflows/apiary.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v4
14-
- name: Use Node.js 18
14+
- name: Use Node.js 20
1515
uses: actions/setup-node@v4
1616
with:
17-
node-version: 18
17+
node-version: 20
1818

1919
- name: Install apiaryio
2020
run: sudo gem install apiaryio

.github/workflows/docs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v4
20-
- name: Use Node.js 18
20+
- name: Use Node.js 20
2121
uses: actions/setup-node@v4
2222
with:
23-
node-version: 18
23+
node-version: 20
2424
cache: 'npm'
2525
cache-dependency-path: 'package-lock.json'
2626
always-auth: 'true'

.github/workflows/lychee.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
steps:
99
- uses: actions/checkout@v4
1010

11-
- name: Use Node.js 18
11+
- name: Use Node.js 20
1212
uses: actions/setup-node@v4
1313
with:
14-
node-version: 18
14+
node-version: 20
1515
cache: 'npm'
1616
cache-dependency-path: 'package-lock.json'
1717
always-auth: 'true'

.github/workflows/publish-theme.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
with:
1717
fetch-depth: 0
1818

19-
- name: Use Node.js 18
19+
- name: Use Node.js 20
2020
uses: actions/setup-node@v4
2121
with:
22-
node-version: 18
22+
node-version: 20
2323

2424
- name: Check changes in theme
2525
id: changed-theme-files
@@ -38,10 +38,10 @@ jobs:
3838
with:
3939
token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
4040

41-
- name: Use Node.js 18
41+
- name: Use Node.js 20
4242
uses: actions/setup-node@v4
4343
with:
44-
node-version: 18
44+
node-version: 20
4545
cache: 'npm'
4646
cache-dependency-path: 'package-lock.json'
4747
always-auth: 'true'

.github/workflows/test.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
- name: Checkout Source code
1414
uses: actions/checkout@v4
1515

16-
- name: Use Node.js 18
16+
- name: Use Node.js 20
1717
uses: actions/setup-node@v4
1818
with:
19-
node-version: 18
19+
node-version: 20
2020
cache: 'npm'
2121
cache-dependency-path: 'package-lock.json'
2222
always-auth: 'true'
@@ -48,10 +48,10 @@ jobs:
4848
**/*.mdx
4949
separator: ","
5050

51-
- name: Use Node.js 18
51+
- name: Use Node.js 20
5252
uses: actions/setup-node@v4
5353
with:
54-
node-version: 18
54+
node-version: 20
5555
cache: 'npm'
5656
cache-dependency-path: 'package-lock.json'
5757
registry-url: 'https://npm.pkg.github.com/'
@@ -79,10 +79,10 @@ jobs:
7979
- name: Checkout Source code
8080
uses: actions/checkout@v4
8181

82-
- name: Use Node.js 18
82+
- name: Use Node.js 20
8383
uses: actions/setup-node@v4
8484
with:
85-
node-version: 18
85+
node-version: 20
8686
cache: 'npm'
8787
cache-dependency-path: 'package-lock.json'
8888
registry-url: 'https://npm.pkg.github.com/'

package-lock.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,8 @@
7979
},
8080
"workspaces": [
8181
"apify-docs-theme"
82-
]
82+
],
83+
"engines": {
84+
"node": ">=18.0.0"
85+
}
8386
}

0 commit comments

Comments
 (0)