From 7c0b2351a53bf4deda8b9821eea0b12387e89ea7 Mon Sep 17 00:00:00 2001 From: Jim Han <50871214+JimhHan@users.noreply.github.com> Date: Fri, 2 Apr 2021 12:03:54 +0800 Subject: [PATCH] Add: Prettier Action --- .github/workflows/blank.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/blank.yml diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml new file mode 100644 index 000000000..2c9388932 --- /dev/null +++ b/.github/workflows/blank.yml @@ -0,0 +1,23 @@ +name: Continuous Integration + +on: + pull_request: + branches: [master] + +jobs: + prettier: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + ref: ${{ github.head_ref }} + fetch-depth: 0 + + - name: Prettify code + uses: creyD/prettier_action@v3.1 + with: + prettier_options: --write **/*.{js,ts,md,vue} + only_changed: true + dry: true