Skip to content

Commit 17a349b

Browse files
authored
fix: update node to v24 (#356)
1 parent 16f1e1e commit 17a349b

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

.actor/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Specify the base Docker image. You can read more about
22
# the available images at https://docs.apify.com/sdk/js/docs/guides/docker-images
33
# You can also use any other image from Docker Hub.
4-
FROM apify/actor-node:20 AS builder
4+
FROM apify/actor-node:24 AS builder
55

66
# Check preinstalled packages
77
RUN npm ls crawlee apify puppeteer playwright
@@ -22,7 +22,7 @@ COPY . ./
2222
RUN npm run build
2323

2424
# Create final image
25-
FROM apify/actor-node:20
25+
FROM apify/actor-node:24
2626

2727
# Check preinstalled packages
2828
RUN npm ls crawlee apify puppeteer playwright

.github/workflows/check.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919

2020
steps:
2121
- uses: actions/checkout@v4
22-
- name: Use Node.js 22
23-
uses: actions/setup-node@v4
22+
- name: Use Node.js
23+
uses: actions/setup-node@v6
2424
with:
25-
node-version: 22
25+
node-version-file: '.nvmrc'
2626
cache: 'npm'
2727
cache-dependency-path: 'package-lock.json'
2828
- name: Install Dependencies

.github/workflows/evaluations.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
- name: Checkout code
2424
uses: actions/checkout@v4
2525

26-
- name: Use Node.js 22
27-
uses: actions/setup-node@v4
26+
- name: Use Node.js
27+
uses: actions/setup-node@v6
2828
with:
29-
node-version: 22
29+
node-version-file: '.nvmrc'
3030
cache: 'npm'
3131
cache-dependency-path: 'package-lock.json'
3232

.github/workflows/pre_release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ jobs:
3939
ref: ${{ github.event.pull_request.head.ref }}
4040
repository: ${{ github.event.pull_request.head.repo.full_name }}
4141

42-
- name: Use Node.js 22
43-
uses: actions/setup-node@v4
42+
- name: Use Node.js
43+
uses: actions/setup-node@v6
4444
with:
45-
node-version: 22
45+
node-version-file: '.nvmrc'
4646
cache: 'npm'
4747
cache-dependency-path: 'package-lock.json'
4848

.github/workflows/release.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ jobs:
6060
with:
6161
token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
6262

63-
- name: Use Node.js 22
64-
uses: actions/setup-node@v4
63+
- name: Use Node.js
64+
uses: actions/setup-node@v6
6565
with:
66-
node-version: 22
66+
node-version-file: '.nvmrc'
6767

6868
- name: Update package version in package.json
6969
run: npm version --no-git-tag-version --allow-same-version ${{ needs.release_metadata.outputs.version_number }}
@@ -140,10 +140,10 @@ jobs:
140140
fi
141141
142142
echo "✓ Version check passed: server.json has correct version $ACTUAL_VERSION"
143-
- name: Use Node.js 22
144-
uses: actions/setup-node@v4
143+
- name: Use Node.js
144+
uses: actions/setup-node@v6
145145
with:
146-
node-version: 22
146+
node-version-file: '.nvmrc'
147147
cache: 'npm'
148148
cache-dependency-path: 'package-lock.json'
149149
- name: Install dependencies
@@ -210,10 +210,10 @@ jobs:
210210
fi
211211
212212
echo "✓ Version check passed: package.json has correct version $ACTUAL_VERSION"
213-
- name: Use Node.js 22
213+
- name: Use Node.js
214214
uses: actions/setup-node@v6
215215
with:
216-
node-version: 22
216+
node-version-file: '.nvmrc'
217217
cache: 'npm'
218218
cache-dependency-path: 'package-lock.json'
219219
registry-url: 'https://registry.npmjs.org'

.nvmrc

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

0 commit comments

Comments
 (0)