Files
pokedex/.github/workflows/prettier.yml
Fran fdc9e29bc5
Some checks failed
Format the code / Format Files (push) Failing after 4m24s
fix: Add prettier workflow
2024-11-04 15:53:54 -05:00

26 lines
581 B
YAML

name: Format the code
on:
push:
pull_request:
jobs:
format:
runs-on: ubuntu-latest
name: Format Files
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16"
- name: Prettier
run: npx prettier --write **/*.js
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"