Skip to content

Commit

Permalink
Fix markdown linter execution in GitHub actions
Browse files Browse the repository at this point in the history
Problem: "Cannot find module 'node:path'"
Cause: Current markdownlint version is not compatible with node10
Measure: use node16 explicitly
  • Loading branch information
fadeevab authored and ctjhoa committed Aug 29, 2022
1 parent cf46376 commit 01f8240
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: 16

- name: Check links
run: npx markdown-link-check -c .markdown-link-check-config.json README.md
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: 16

- name: Lint markdown
run: npx markdownlint-cli2 "*.md" "#MAINTAINERS.md"

0 comments on commit 01f8240

Please sign in to comment.