Skip to content

Commit

Permalink
ci: add step to format docs with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha committed Nov 15, 2023
1 parent 6781ac3 commit efb4df8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ jobs:
with:
package-manager: yarn

- name: Format Docs
run: |
yarn run format
git diff --exit-code
# TODO: running a giant copy command to import CSS and SVG files into the docs file in not super ideal
- name: Build docs
run: |
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"license": "MIT",
"scripts": {
"lint": "eslint . --quiet --fix --report-unused-disable-directives --ignore-path .gitignore",
"format": "prettier -w docs/ .github/",
"test": "cross-env NODE_OPTIONS=--enable-source-maps lerna run test --parallel",
"clean": "tsc -b --clean && rimraf 'packages/*/build' && yarn clean:dist",
"clean:dist": "rimraf 'packages/*/dist' && rimraf 'packages/_infra/cdk.out'",
Expand Down

0 comments on commit efb4df8

Please sign in to comment.