Skip to content

Commit

Permalink
Move admonitions formatting out of NPM script
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Sep 20, 2023
1 parent 2a7aaca commit dfe4908
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/action-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
run: yarn format-json && ruby bin/format-array.rb

- name: Format Markdown files
run: yarn format-md
run: yarn format-md && ruby bin/format-admonitions.rb

- name: 'Commit formatted code'
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jobs:

- name: Verify that markdown files are formatted correctly
run: |
yarn format-md
yarn format-md && ruby bin/format-admonitions.rb
if ! git diff --quiet --exit-code; then
echo "please format the files with prettier, or apply the following changes:"
git diff
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"test": "ajv -s canonical-data.schema.json -d \"exercises/*/canonical-data.json\"",
"test-one": "ajv -s canonical-data.schema.json -d",
"format-json": "prettier --write **/*.json",
"format-md": "prettier --write **/*.md && ruby bin/format-admonitions.rb"
"format-md": "prettier --write **/*.md"
},
"resolutions": {
"minimist": "^1.2.3"
Expand Down

0 comments on commit dfe4908

Please sign in to comment.