From 83486961b75e67a1e50536ecad5ac06dc7a8cec0 Mon Sep 17 00:00:00 2001 From: cgd <70825723+cupglassDEV@users.noreply.github.com> Date: Sun, 10 Nov 2024 18:56:25 +0700 Subject: [PATCH] Create formatter.yml --- .github/workflows/formatter.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/formatter.yml diff --git a/.github/workflows/formatter.yml b/.github/workflows/formatter.yml new file mode 100644 index 000000000..3310cebfc --- /dev/null +++ b/.github/workflows/formatter.yml @@ -0,0 +1,22 @@ +name: Formatter +on: + push: + branches: + - main +jobs: + format: + name: "Format" + runs-on: ubuntu-latest + steps: + - uses: actions/setup-node@v4 + with: + node-version: 20.x + - name: Run prettier + # Use -y, like npm install -y + run: npx -y prettier ./domains -w --tab-width 2 --print-width 120 + - name: Commit + run: | + git config --global user.name 'is-a.dev' + git config --global user.email 'actions@github.com' + git commit -am "Format domains" + git push