From d4ed85326dc918943dad62639bcb0eb7c40f9a36 Mon Sep 17 00:00:00 2001 From: Xianpeng Shen <3353385+shenxianpeng@users.noreply.github.com> Date: Thu, 29 Oct 2026 22:05:45 +0000 Subject: [PATCH] fix: use the Node.js LTS in the pre-commit workflow `node-version: latest` now resolves to v27.0.0-alpha.0.0.0, which cspell-cli refuses to run on (it needs >=22.18.0). So the cspell hook and the PR title spell check fail in every repo that uses this workflow. --- .github/workflows/pre-commit.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index eaa0bf2..7353ec9 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -22,7 +22,7 @@ jobs: python-version: "3.x" - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: - node-version: latest + node-version: lts/* - name: Run commands if: inputs.commands run: ${INPUTS_COMMANDS} @@ -74,7 +74,7 @@ jobs: echo "title=${pr_title}" >> "${GITHUB_OUTPUT}" - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: - node-version: latest + node-version: lts/* - name: spell check # Dependabot titles are generated from package names that are not # dictionary words (urllib3, pyjwt, ...); spell-checking them only