From ab787465b60aa0c4e511dda569381d9e9b22a3e9 Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Mon, 15 Nov 2021 11:58:26 +0100 Subject: [PATCH] Add `prettier` check in CI --- .github/workflows/ci.yml | 3 +++ package.json | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3bf6c73a..f9c7a7e5 100644 --- a/.github/workflows/ci.yml +++ b/.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 diff --git a/package.json b/package.json index c30af17a..45f87026 100644 --- a/package.json +++ b/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"