mirror of
https://github.com/actions/toolkit.git
synced 2026-08-22 00:00:21 +02:00
Change npm format to format-check and add format command
This commit is contained in:
@@ -23,7 +23,7 @@ action "Compile" {
|
|||||||
action "Format" {
|
action "Format" {
|
||||||
needs = "Dependencies"
|
needs = "Dependencies"
|
||||||
uses = "actions/[email protected]"
|
uses = "actions/[email protected]"
|
||||||
args = "run format"
|
args = "run format-check"
|
||||||
}
|
}
|
||||||
|
|
||||||
action "Test" {
|
action "Test" {
|
||||||
|
|||||||
+2
-1
@@ -4,7 +4,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"bootstrap": "lerna bootstrap",
|
"bootstrap": "lerna bootstrap",
|
||||||
"build": "lerna run tsc",
|
"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",
|
"new-package": "scripts/create-package",
|
||||||
"test": "jest"
|
"test": "jest"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user