Skip to content

Commit a5135b7

Browse files
authored
Use patched Node 22 for signature parity (#92)
1 parent 966c15a commit a5135b7

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
lfs: true
2626
- uses: actions/setup-node@v4
2727
with:
28-
node-version: 20
28+
node-version: "22.23.4"
2929
- run: npm install -g tsx
3030
- uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f
3131
with:

‎Dockerfile‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# syntax=docker/dockerfile:1
22

3+
FROM node:22.23.4-bookworm-slim AS node
4+
35
FROM ruby:4.0 AS base
46

57
RUN apt-get update \
@@ -10,10 +12,11 @@ RUN apt-get update \
1012
ca-certificates \
1113
&& rm -rf /var/lib/apt/lists/*
1214

13-
# Install Node.js for parity checks
14-
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
15-
&& apt-get install -y --no-install-recommends nodejs \
16-
&& npm install -g npm@latest \
17-
&& rm -rf /var/lib/apt/lists/*
15+
# Use the patched Node.js release for parity checks.
16+
COPY --from=node /usr/local/bin/node /usr/local/bin/node
17+
COPY --from=node /usr/local/lib/node_modules/npm /usr/local/lib/node_modules/npm
18+
RUN ln -s ../lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \
19+
&& ln -s ../lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx \
20+
&& npm install -g npm@latest
1821

1922
WORKDIR /workspace

0 commit comments

Comments
 (0)