Skip to content

Commit d9ecd41

Browse files
committed
chore: pin nodejs version to 22.4 (#7291)
Revert "chore: unpin nodejs version from 22.4 (#6982)" This reverts commit 69ae688.
1 parent 75ff604 commit d9ecd41

11 files changed

+24
-24
lines changed

.github/workflows/benchmark.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- uses: actions/checkout@v4
3434
- uses: actions/setup-node@v4
3535
with:
36-
node-version: 22
36+
node-version: 22.4
3737
check-latest: true
3838
cache: yarn
3939
- name: Node.js version

.github/workflows/binaries.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
sudo apt-get install -y build-essential python3
4343
- uses: "./.github/actions/setup-and-build"
4444
with:
45-
node: 22
45+
node: 22.4
4646
- run: |
4747
mkdir -p dist
4848
yarn global add caxa@3.0.1

.github/workflows/docs-check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@v4
1616
- uses: actions/setup-node@v4
1717
with:
18-
node-version: 22
18+
node-version: 22.4
1919
cache: yarn
2020
- name: Node.js version
2121
id: node

.github/workflows/docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131

3232
- uses: actions/setup-node@v4
3333
with:
34-
node-version: 22
34+
node-version: 22.4
3535
check-latest: true
3636
cache: yarn
3737

.github/workflows/publish-dev.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
fetch-depth: 0
2121
- uses: actions/setup-node@v4
2222
with:
23-
node-version: 22
23+
node-version: 22.4
2424
registry-url: "https://registry.npmjs.org"
2525
check-latest: true
2626
cache: yarn

.github/workflows/publish-rc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161

6262
- uses: "./.github/actions/setup-and-build"
6363
with:
64-
node: 22
64+
node: 22.4
6565

6666
- name: Generate changelog
6767
run: node scripts/generate_changelog.mjs ${{ needs.tag.outputs.prev_tag }} ${{ needs.tag.outputs.tag }} CHANGELOG.md

.github/workflows/publish-stable.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767

6868
- uses: "./.github/actions/setup-and-build"
6969
with:
70-
node: 22
70+
node: 22.4
7171

7272
- name: Generate changelog
7373
run: node scripts/generate_changelog.mjs ${{ needs.tag.outputs.prev_tag }} ${{ needs.tag.outputs.tag }} CHANGELOG.md

.github/workflows/test-sim-merge.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- uses: actions/checkout@v4
3131
- uses: actions/setup-node@v4
3232
with:
33-
node-version: 22
33+
node-version: 22.4
3434
check-latest: true
3535
cache: yarn
3636
- name: Node.js version

.github/workflows/test-sim.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- uses: actions/checkout@v4
3232
- uses: "./.github/actions/setup-and-build"
3333
with:
34-
node: 22
34+
node: 22.4
3535

3636
sim-test-multifork:
3737
name: Multifork sim test
@@ -42,7 +42,7 @@ jobs:
4242
- uses: actions/checkout@v4
4343
- uses: "./.github/actions/setup-and-build"
4444
with:
45-
node: 22
45+
node: 22.4
4646
- name: Load env variables
4747
uses: ./.github/actions/dotenv
4848
- name: Download required docker images before running tests
@@ -71,7 +71,7 @@ jobs:
7171
- uses: actions/checkout@v4
7272
- uses: "./.github/actions/setup-and-build"
7373
with:
74-
node: 22
74+
node: 22.4
7575
- name: Load env variables
7676
uses: ./.github/actions/dotenv
7777
- name: Download required docker images before running tests
@@ -100,7 +100,7 @@ jobs:
100100
- uses: actions/checkout@v4
101101
- uses: "./.github/actions/setup-and-build"
102102
with:
103-
node: 22
103+
node: 22.4
104104
- name: Load env variables
105105
uses: ./.github/actions/dotenv
106106
- name: Download required docker images before running tests
@@ -129,7 +129,7 @@ jobs:
129129
- uses: actions/checkout@v4
130130
- uses: "./.github/actions/setup-and-build"
131131
with:
132-
node: 22
132+
node: 22.4
133133
- name: Load env variables
134134
uses: ./.github/actions/dotenv
135135
- name: Download required docker images before running tests
@@ -158,7 +158,7 @@ jobs:
158158
- uses: actions/checkout@v4
159159
- uses: "./.github/actions/setup-and-build"
160160
with:
161-
node: 22
161+
node: 22.4
162162
- name: Load env variables
163163
uses: ./.github/actions/dotenv
164164
- name: Download required docker images before running tests

.github/workflows/test.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
node: [22]
22+
node: [22.4]
2323
steps:
2424
# <common-build> - Uses YAML anchors in the future
2525
- uses: actions/checkout@v4
@@ -42,7 +42,7 @@ jobs:
4242
strategy:
4343
fail-fast: false
4444
matrix:
45-
node: [22]
45+
node: [22.4]
4646
steps:
4747
- uses: actions/checkout@v4
4848
- uses: "./.github/actions/setup-and-build"
@@ -71,7 +71,7 @@ jobs:
7171
strategy:
7272
fail-fast: false
7373
matrix:
74-
node: [22]
74+
node: [22.4]
7575
steps:
7676
- uses: actions/checkout@v4
7777

@@ -92,7 +92,7 @@ jobs:
9292
strategy:
9393
fail-fast: false
9494
matrix:
95-
node: [22]
95+
node: [22.4]
9696
steps:
9797
- uses: actions/checkout@v4
9898
- uses: "./.github/actions/setup-and-build"
@@ -131,7 +131,7 @@ jobs:
131131
strategy:
132132
fail-fast: false
133133
matrix:
134-
node: [22]
134+
node: [22.4]
135135
steps:
136136
# <common-build> - Uses YAML anchors in the future
137137
- uses: actions/checkout@v4
@@ -168,7 +168,7 @@ jobs:
168168
strategy:
169169
fail-fast: false
170170
matrix:
171-
node: [22]
171+
node: [22.4]
172172
steps:
173173
# <common-build> - Uses YAML anchors in the future
174174
- uses: actions/checkout@v4
@@ -192,7 +192,7 @@ jobs:
192192
strategy:
193193
fail-fast: false
194194
matrix:
195-
node: [22]
195+
node: [22.4]
196196
steps:
197197
- uses: actions/checkout@v4
198198
- uses: "./.github/actions/setup-and-build"

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# --platform=$BUILDPLATFORM is used build javascript source with host arch
33
# Otherwise TS builds on emulated archs and can be extremely slow (+1h)
4-
FROM --platform=${BUILDPLATFORM:-amd64} node:22-slim AS build_src
4+
FROM --platform=${BUILDPLATFORM:-amd64} node:22.4-slim AS build_src
55
ARG COMMIT
66
WORKDIR /usr/app
77
RUN apt-get update && apt-get install -y g++ make python3 python3-setuptools && apt-get clean && rm -rf /var/lib/apt/lists/*
@@ -21,7 +21,7 @@ RUN cd packages/cli && GIT_COMMIT=${COMMIT} yarn write-git-data
2121

2222
# Copy built src + node_modules to build native packages for archs different than host.
2323
# Note: This step is redundant for the host arch
24-
FROM node:22-slim AS build_deps
24+
FROM node:22.4-slim AS build_deps
2525
WORKDIR /usr/app
2626
RUN apt-get update && apt-get install -y g++ make python3 python3-setuptools && apt-get clean && rm -rf /var/lib/apt/lists/*
2727

@@ -35,7 +35,7 @@ RUN cd node_modules/classic-level && yarn rebuild
3535

3636
# Copy built src + node_modules to a new layer to prune unnecessary fs
3737
# Previous layer weights 7.25GB, while this final 488MB (as of Oct 2020)
38-
FROM node:22-slim
38+
FROM node:22.4-slim
3939
WORKDIR /usr/app
4040
COPY --from=build_deps /usr/app .
4141

0 commit comments

Comments
 (0)