Skip to content

fix: prettier workflow #2

fix: prettier workflow

fix: prettier workflow #2

Workflow file for this run

name: Format Code w/ Prettier
on: push
jobs:
format:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: 🏗 Setup Node
uses: actions/setup-node@v4
with:
node-version: "20.x"
- name: 📦 Install dependencies
run: npm ci
- name: 👷 Format code
uses: actionsx/prettier@v3
with:
args: --write .
- name: 🎨 Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: apply formatting changes"
branch: ${{ github.head_ref }}