The ubuntu-latest runner does not have Node.js pre-installed, causing the markdownlint-cli2-action to fail with 'Cannot find: node in PATH'. Add explicit setup-node step before running the lint action. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
committed by
Gandalf the Greybeard [agent]
parent
c085b899a4
commit
4cffd9d310
@@ -13,6 +13,11 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Lint Markdown
|
||||
uses: DavidAnson/markdownlint-cli2-action@v22
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user