Skip to content

chore: make prettier run on pushes to main #8

chore: make prettier run on pushes to main

chore: make prettier run on pushes to main #8

Workflow file for this run

name: Run Prettier
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v4
with:
node-version: "20.x"
- run: npm ci
- run: npm run lint
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "lint: automatically ran prettier via workflows"
branch: ${{ github.head_ref }}