Skip to content

Commit

Permalink
Merge pull request #80 from rrafaelc/feature/add-github-actions-prettier
Browse files Browse the repository at this point in the history
feat: adicionado workflow prettier
  • Loading branch information
rrafaelc authored Sep 17, 2023
2 parents 8e0ce93 + 580a4f5 commit 67ba67d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Format the code

on:
push:
branches:
- main

jobs:
format:
runs-on: ubuntu-latest
name: Format Files
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Prettier
run: npx prettier --write .
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: stefanzweifel/git-auto-commit-action@v4
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
with:
commit_message: 'style: format files'

0 comments on commit 67ba67d

Please sign in to comment.