From 61d0b42539d2ae59de572886a12eeeb8cb2a9f3d Mon Sep 17 00:00:00 2001 From: Conrad Date: Fri, 10 Jan 2020 10:25:19 +0100 Subject: [PATCH] Added Prettifier Config --- .github/workflows/prettier.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/prettier.yml diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml new file mode 100644 index 0000000..9440930 --- /dev/null +++ b/.github/workflows/prettier.yml @@ -0,0 +1,20 @@ +name: Prettier for JS Code + +on: [pull_request] + +jobs: + cleanup_tasks: + runs-on: ubuntu-latest + + steps: + - name: Cloning the repository + uses: actions/checkout@v1 + with: + fetch-depth: 1 + - name: Prettify the JS Code + uses: creyD/prettier_action@master + with: + prettier_options: --no-semi --write src/**/*.js + branch: ${{ github.head_ref }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}