Skip to content

Prettier

Prettier #1

Workflow file for this run

name: Prettify Code
on: [push, pull_request]
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npx prettier --write .
- run: git diff --exit-code || (git config --global user.name "github-actions" && git config --global user.email "actions@github.com" && git commit -am "chore: auto-format code" && git push)

Check failure on line 14 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yaml

Invalid workflow file

You have an error in your yaml syntax on line 14