Skip to content

Commit d44c760

Browse files
chore(deps): use local markdownlint in CI
Move markdownlint-cli into tracked npm devDependencies so CI installs pinned project dependencies with `npm ci` and runs the local binary via `npx --no-install`. Also ignore `node_modules` now that the repo manages Node-based tooling.
1 parent 32dc942 commit d44c760

4 files changed

Lines changed: 1203 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
- name: Checkout
1919
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2020

21-
- name: Install markdownlint-cli
22-
run: npm install --ignore-scripts -g markdownlint-cli
21+
- name: Install dependencies
22+
run: npm ci --ignore-scripts
2323

2424
- name: Lint markdown files
2525
run: |
26-
markdownlint \
26+
npx --no-install markdownlint \
2727
-f \
2828
-o markdownlint_report.log \
2929
--ignore-path .markdownlintignore \

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# ignore JetBrains IDE files
22
.idea/
3+
4+
# ignore Node.js dependencies
5+
node_modules/

0 commit comments

Comments
 (0)