Skip to content

Commit

Permalink
Add Prettier as Pipeline check
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenLm committed Sep 28, 2023
1 parent 09833dd commit 71993c3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/docs_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ jobs:

- name: Install dependencies
run: npm ci

- name: check formatting
run: npm prettier:check

- name: Build website
run: npm run build

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ jobs:
- name: install dependencies
run: npm ci

- name: check formatting
run: npm prettier:check

- name: build website
run: npm run build
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"clear": "docusaurus clear",
"serve": "docusaurus serve",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids"
"write-heading-ids": "docusaurus write-heading-ids",
"prettier:check": "npx prettier . --check",
"prettier:write": "npx prettier . --write"
},
"dependencies": {
"@docusaurus/core": "^2.4.1",
Expand Down

0 comments on commit 71993c3

Please sign in to comment.