Răsfoiți Sursa

Add `prettier` check in CI

Alex Dima 3 ani în urmă
părinte
comite
ab787465b6
2 a modificat fișierele cu 4 adăugiri și 0 ștergeri
  1. 3 0
      .github/workflows/ci.yml
  2. 1 0
      package.json

+ 3 - 0
.github/workflows/ci.yml

@@ -29,6 +29,9 @@ jobs:
         if: ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}
         run: npm install --prefix monaco-editor-webpack-plugin
 
+      - name: Check prettier
+        run: npm run prettier-check
+
       - name: Build
         run: npm run release
 

+ 1 - 0
package.json

@@ -15,6 +15,7 @@
 		"build-website": "gulp build-website && npm run typedoc",
 		"typedoc": "cd monaco-editor/typedoc && \"../../node_modules/.bin/typedoc\" --options ./typedoc.json",
 		"prettier": "prettier --write .",
+		"prettier-check": "prettier --check .",
 		"pretty-quick": "pretty-quick --staged",
 		"gulp": "node ./node_modules/gulp/bin/gulp.js",
 		"postinstall": "node build/postinstall.js"