Repository navigation
fix: use the Node.js LTS in the pre-commit workflow - #125
Conversation
`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.
WalkthroughThe pre-commit and PR-title spell-check jobs now select the latest LTS release for Node.js instead of the latest release. ChangesNode.js LTS Selection
Priority: Estimated code review effort: 1 (Trivial) | ~3 minutes Merge Risk:
|
2bndy5
left a comment
There was a problem hiding this comment.
I didn't know about the lts/* syntax.
|
me too 😀 |
actions/setup-nodewithnode-version: latestnow installs v27.0.0-alpha.0.0.0, and cspell-cli refuses to run on it:So both jobs of this shared workflow (the
cspellpre-commit hook and the PR title spell check) fail in every repo that calls it, for example cpp-linter/cpp-linter-rs#530, #531 and #532.Changes
node-version: latest→node-version: lts/*in both jobs ofpre-commit.yml.Summary by CodeRabbit