Skip to content

Commit

Permalink
Pin markdownlint-cli2 to version 0.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarcoux committed Sep 30, 2024
1 parent a84e530 commit b0fa179
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
# https://github.com/actions/setup-node
- uses: actions/setup-node@v4
- name: Install CLI for markdownlint
run: npm install markdownlint-cli2 --global
run: npm install markdownlint-cli2@0.14.0 --global # Pinned to the same version in shell.nix
- name: Lint Markdown files, while excluding anything under the node_modules directories (which is generated by `npm install` above)
run: markdownlint-cli2 "**/*.md" "#node_modules"
# TODO: zola must be installed for this to work
Expand Down
4 changes: 2 additions & 2 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ mkShell {
#
# To update this linter:
# - Remove the installed NPM packages with `rm -r $NPM_CONFIG_PREFIX`
# - Update the pinned version
# - Update the pinned version here and in GitHub Actions workflow
# - Restart this nix-shell
command -v markdownlint-cli2 1> /dev/null || npm install markdownlint-cli2@0.5.1 --global
command -v markdownlint-cli2 1> /dev/null || npm install markdownlint-cli2@0.14.0 --global
# Create alias to lint Markdown files
alias lint="markdownlint-cli2 '**/*.md' '#node_modules' '#$NPM_CONFIG_PREFIX'"
Expand Down

0 comments on commit b0fa179

Please sign in to comment.