From 0348f5491ad374802967877ff33d1c19fbad7c32 Mon Sep 17 00:00:00 2001 From: Whisker17 Date: Thu, 27 Jul 2023 17:40:20 +0800 Subject: [PATCH] feat: add prettier action --- .github/workflows/prettier_format.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/prettier_format.yml b/.github/workflows/prettier_format.yml index d916bca354..f058f8c16b 100644 --- a/.github/workflows/prettier_format.yml +++ b/.github/workflows/prettier_format.yml @@ -13,5 +13,11 @@ jobs: - name: Check Out Repository uses: actions/checkout@v2 + - name: Install Prettier + run: npm install prettier --global + + - name: Display Prettier Version + run: prettier --version + - name: Run Prettier Auto-Format - run: docker run --rm -v $PWD:/app -w /app prettier/prettier:latest --write . + run: prettier --write .