Skip to content

Commit 71f9f11

Browse files
committed
ci: exchange github action markdown for one with npx so we can run locally too
1 parent c5b35fa commit 71f9f11

2 files changed

Lines changed: 7 additions & 10 deletions

File tree

.github/workflows/markdown-lint.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,10 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515

16-
- name: Markdown Lint
17-
uses: ruzickap/action-my-markdown-linter@26b4129bf0352527e60b5bd739357af63df1b7bf
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
1818
with:
19-
debug: true
20-
config_file: .github/.markdownlint.yml
21-
exclude: |
22-
.changeset/
23-
.github/
24-
CODE_OF_CONDUCT.md
25-
LICENSE
26-
CHANGELOG.md
19+
node-version: '22'
20+
21+
- name: Markdown Lint
22+
run: npx -y markdownlint-cli@0.45.0 -c .github/.markdownlint.yml -i '.git' -i '__tests__' -i '.github' -i '.changeset' -i 'CODE_OF_CONDUCT.md' -i 'CHANGELOG.md' -i 'node_modules' -i 'dist' -i '__template__' '**/**.md'

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"build": "tsc && tsup && npm run build:copy-templates",
3939
"build:copy-templates": "cp -r __template__ dist/",
4040
"lint": "eslint . && npm run lint:lockfile",
41+
"lint:markdown": "npx -y markdownlint-cli@0.45.0 -c .github/.markdownlint.yml -i '.git' -i '__tests__' -i '.github' -i '.changeset' -i 'CODE_OF_CONDUCT.md' -i 'CHANGELOG.md' -i 'node_modules' -i 'dist' -i '__template__' '**/**.md' --fix",
4142
"lint:fix": "eslint . --fix",
4243
"lint:lockfile": "lockfile-lint --path package-lock.json --validate-https --allowed-hosts npm yarn",
4344
"test": "c8 node --import tsx --test __tests__/**/*.test.ts",

0 commit comments

Comments
 (0)