From 6f81afa89ff5e947b68bd5ec1e46994411dbd8ca Mon Sep 17 00:00:00 2001 From: Sy Bohy Date: Fri, 23 Oct 2026 21:50:46 -0700 Subject: [PATCH] ci: use patched Node releases for dbtypr tooling --- .devcontainer/Dockerfile | 18 ++++++++++++++++-- .devcontainer/devcontainer.json | 2 +- .github/actions/setup/action.yml | 2 +- .github/workflows/_build.yml | 2 +- .github/workflows/check.yml | 16 ++++++++-------- .nvmrc | 2 +- 6 files changed, 28 insertions(+), 14 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 3777f5b..5cd2572 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,6 +1,20 @@ -ARG VARIANT="20" +ARG VARIANT="22-bookworm" -FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:${VARIANT} +FROM node:22.23.4-bookworm-slim@sha256:de170b39439eb0e5a3444ad7d60b015614a381e10fecae2e30ec9e735122f38d AS patched-node + +FROM mcr.microsoft.com/devcontainers/javascript-node:1-${VARIANT} + +# Patch the system binary and any inherited nvm copies used by interactive shells. +COPY --from=patched-node /usr/local/bin/node /tmp/patched-node +RUN install -m 0755 /tmp/patched-node /usr/local/bin/node \ + && if [ -d /usr/local/share/nvm/versions/node ]; then \ + find /usr/local/share/nvm/versions/node -type f -path "*/bin/node" \ + -exec install -m 0755 /tmp/patched-node {} \; ; \ + fi \ + && rm /tmp/patched-node \ + && test "$(node --version)" = "v22.23.4" \ + && test "$(/usr/local/bin/node --version)" = "v22.23.4" +ENV NODE_VERSION=22.23.4 USER node WORKDIR /home/node diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 21ada2f..6f8c0a3 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,7 +3,7 @@ "build": { "dockerfile": "Dockerfile", "args": { - "VARIANT": "20" + "VARIANT": "22-bookworm" } }, "extensions": [ diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 6bc1752..23d1bbb 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -6,7 +6,7 @@ inputs: node_version: description: The Node.js version. required: false - default: '20' + default: '22.23.4' registry_url: description: The Node.js package registry URL. required: false diff --git a/.github/workflows/_build.yml b/.github/workflows/_build.yml index 5375ec4..5cf0ca3 100644 --- a/.github/workflows/_build.yml +++ b/.github/workflows/_build.yml @@ -8,7 +8,7 @@ on: description: The Node.js version. type: string required: false - default: '20' + default: '22.23.4' ref: description: The git ref to build (defaults to the triggering ref). type: string diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 0c4e156..a464337 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -20,8 +20,8 @@ jobs: os: - ubuntu-latest node: - - '18' - - '20' + - '22.23.4' + - '24.22.1' include: - os: ubuntu-latest os_name: Linux @@ -42,8 +42,8 @@ jobs: fail-fast: false matrix: node: - - '18' - - '20' + - '22.23.4' + - '24.22.1' steps: - name: Checkout uses: actions/checkout@v4 @@ -67,8 +67,8 @@ jobs: os: - ubuntu-latest node: - - '18' - - '20' + - '22.23.4' + - '24.22.1' include: - os: ubuntu-latest os_name: Linux @@ -113,8 +113,8 @@ jobs: fail-fast: false matrix: node: - - '18' - - '20' + - '22.23.4' + - '24.22.1' steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.nvmrc b/.nvmrc index 209e3ef..b8b23ca 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20 +22.23.4