Create gh action - format (#17)

Co-authored-by: AngeloTadeucci <AngeloTadeucci@users.noreply.github.com>
This commit is contained in:
Ângelo Tadeucci 2023-06-06 19:38:58 -03:00 committed by GitHub
parent 216b478556
commit 737915557b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

21
.github/workflows/prettier.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: Prettier
on:
pull_request:
branches: [main]
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v1
with:
node-version: "18.x"
- run: npm ci
- run: npm run prettier
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4.1.2
with:
commit_message: Apply prettier changes
branch: ${{ github.head_ref }}