From 1f94b4aacc9a06ed16a09db209c4c52d3f1b9af7 Mon Sep 17 00:00:00 2001 From: Dave Skender <8432125+DaveSkender@users.noreply.github.com> Date: Sat, 28 Nov 2026 01:22:50 +0000 Subject: [PATCH 1/2] chore: Run Node tools through pnpm The a11y workflow installs pa11y-ci with pnpm/setup and pnpm add instead of a global npm install and npx, and the markdown lint tasks use pnpm dlx. Claude-Session: https://claude.ai/code/session_01473KakwQy99oSL4qNbnACv --- .github/workflows/test-website-a11y.yml | 18 +++++++++++++++--- .vscode/tasks.json | 4 ++-- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-website-a11y.yml b/.github/workflows/test-website-a11y.yml index 9cea38e3..9c83d4d4 100644 --- a/.github/workflows/test-website-a11y.yml +++ b/.github/workflows/test-website-a11y.yml @@ -39,9 +39,21 @@ jobs: ruby-version: 3.3 bundler-cache: true # runs 'bundle install' and caches gems - - name: Install dependencies + # The repository has no package.json, so the step names its pnpm and Node.js. + - name: Setup pnpm and Node.js + uses: pnpm/setup@v3 + with: + version: 12.23.0 + runtime: node@lts + install: false + + # Puppeteer's install script downloads the browser pa11y drives. + - name: Install pa11y-ci + working-directory: ${{ runner.temp }} run: | - npm install -g pa11y-ci + mkdir pa11y && cd pa11y && echo '{}' > package.json + pnpm add pa11y-ci pa11y --allow-build=puppeteer + echo "$PWD/node_modules/.bin" >> "$GITHUB_PATH" - name: Use 'localhost' uses: jacobtomlinson/gha-find-replace@v3 @@ -57,7 +69,7 @@ jobs: run: bundle exec jekyll serve --port 4000 --detach - name: Show environment - run: npx pa11y --environment + run: pa11y --environment - name: Test accessibility run: > diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 29f562d4..3e18e343 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -86,7 +86,7 @@ "label": "Lint: Markdown files", "detail": "Run markdownlint over documentation", "type": "shell", - "command": "echo y | npx markdownlint-cli2", + "command": "pnpm dlx markdownlint-cli2", "group": "test", "problemMatcher": "$markdownlint" }, @@ -94,7 +94,7 @@ "label": "Lint: Markdown files (fix)", "detail": "Auto-fix markdown formatting issues", "type": "shell", - "command": "echo y | npx markdownlint-cli2 --fix", + "command": "pnpm dlx markdownlint-cli2 --fix", "problemMatcher": "$markdownlint" }, { From fe1d940993fe27f65acdb4c5acfa5891ef10b7d1 Mon Sep 17 00:00:00 2001 From: Dave Skender <8432125+DaveSkender@users.noreply.github.com> Date: Sat, 28 Nov 2026 01:31:29 +0000 Subject: [PATCH 2/2] chore: Install pnpm in the dev container The markdown lint tasks run pnpm dlx, so the node feature installs pnpm 12.23.0 instead of none. Claude-Session: https://claude.ai/code/session_01473KakwQy99oSL4qNbnACv --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 2d5a17d8..c2739163 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -17,7 +17,7 @@ }, "ghcr.io/devcontainers/features/node:2": { "version": "lts", - "pnpmVersion": "none", + "pnpmVersion": "12.23.0", "nvmVersion": "none" }, "ghcr.io/devcontainers/features/github-cli:1": {},