Skip to content

Commit 221e834

Browse files
committed
Set up npm run lint to call markdownlint.
This makes it easier for other developers to run markdownlint, and checking in package-lock.json ensures that we're all using the same version. Futhermore, this commit calls `npm run lint` directly instead of using the GitHub Action because the action doesn't seem to be working.
1 parent 370d5b4 commit 221e834

File tree

4 files changed

+1028
-6
lines changed

4 files changed

+1028
-6
lines changed

.github/workflows/lint.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
name: Lint
2-
on: [pull_request]
2+
on: [workflow_dispatch, pull_request]
33
permissions: read-all
44
jobs:
55
lint:
66
runs-on: ubuntu-latest
77
steps:
8-
- name: Markdown Lint
9-
uses: nosborn/github-action-markdown-cli@6e34c67b8bd3406dd8ee6eeba353ca4c66793501 # v2.0.0
10-
with:
11-
files: .
12-
config_file: ".markdownlint.yaml"
8+
- uses: actions/checkout@v2
9+
- uses: actions/setup-node@v2
10+
- run: npm ci --ignore-scripts
11+
- run: npm run lint --silent

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.sass-cache
22
_site
3+
node_modules

0 commit comments

Comments
 (0)