mirror of https://github.com/actions/toolkit
Change npm format to format-check and add format command
parent
2bd641ee75
commit
618a7ec0f8
|
@ -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" {
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue