Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 every inherited nvm copy 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
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"build": {
"dockerfile": "Dockerfile",
"args": {
"VARIANT": "20"
"VARIANT": "22-bookworm"
}
},
"hostRequirements": {
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
description: The Node.js version.
type: string
required: false
default: '20'
default: '22.23.4'
outputs:
artifact_name:
description: The artifact name.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Setup
uses: ./.github/actions/setup
with:
node_version: '24'
node_version: '24.22.1'
install_dependencies: 'false'
- name: Download artifact
uses: actions/download-artifact@v6
Expand Down
42 changes: 30 additions & 12 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,22 @@ jobs:
os:
- ubuntu-latest
node:
- '18'
- '20'
- '22'
- '24'
include:
- os: ubuntu-latest
os_name: Linux
- node: '22'
node_version: '22.23.4'
- node: '24'
node_version: '24.22.1'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
with:
node_version: ${{ matrix.node }}
node_version: ${{ matrix.node_version }}
- name: Test
run: npm test
lint:
Expand All @@ -42,15 +46,20 @@ jobs:
fail-fast: false
matrix:
node:
- '18'
- '20'
- '22'
- '24'
include:
- node: '22'
node_version: '22.23.4'
- node: '24'
node_version: '24.22.1'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
with:
node_version: ${{ matrix.node }}
node_version: ${{ matrix.node_version }}
- name: Lint
run: npm run lint
build:
Expand All @@ -67,16 +76,20 @@ jobs:
os:
- ubuntu-latest
node:
- '18'
- '20'
- '22'
- '24'
include:
- os: ubuntu-latest
os_name: Linux
- node: '22'
node_version: '22.23.4'
- node: '24'
node_version: '24.22.1'
steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
node-version: ${{ matrix.node_version }}
- name: Download artifact
uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -113,15 +126,20 @@ jobs:
fail-fast: false
matrix:
node:
- '18'
- '20'
- '22'
- '24'
include:
- node: '22'
node_version: '22.23.4'
- node: '24'
node_version: '24.22.1'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
with:
node_version: ${{ matrix.node }}
node_version: ${{ matrix.node_version }}
- name: Typecheck
run: npm run typecheck
docs:
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
22.23.4
Loading