diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index c8a930c09..b347c7d9c 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -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: | diff --git a/package.json b/package.json index bd8be566f..81d9c469a 100644 --- a/package.json +++ b/package.json @@ -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'",