diff --git a/.github/main.workflow b/.github/main.workflow index 99b3568e..cf141b0f 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -23,7 +23,7 @@ action "Compile" { action "Format" { needs = "Dependencies" uses = "actions/npm@v2.0.0" - args = "run format" + args = "run format-check" } action "Test" { diff --git a/package.json b/package.json index c93a4cda..e4fc977b 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "scripts": { "bootstrap": "lerna bootstrap", "build": "lerna run tsc", - "format": "prettier --check packages/*/src/**/*.ts", + "format": "prettier --write packages/*/src/**/*.ts", + "format-check": "prettier --check packages/*/src/**/*.ts", "new-package": "scripts/create-package", "test": "jest" },