Add a workflow to verify Prettier formatting

This commit is contained in:
James M. Greene
2022-08-05 15:28:22 -05:00
parent 5c1535b807
commit 4036d0f035
2 changed files with 29 additions and 1 deletions

View File

@@ -5,7 +5,9 @@
"description": "A GitHub Action to enable Pages and extract various metadata about a site. It can also be used to configure various static site generators we support as starter workflows.",
"main": "./dist/index.js",
"scripts": {
"prepare": "ncc build src/index.js -o dist --source-map --license licenses.txt",
"format": "prettier --write 'src/**/*.js'",
"format:check": "prettier --check 'src/**/*.js'",
"prepare": "npm run format && ncc build src/index.js -o dist --source-map --license licenses.txt",
"test": "jest"
},
"repository": {