Skip to content

Enforce prettier for pull requests to main #5

Enforce prettier for pull requests to main

Enforce prettier for pull requests to main #5

Workflow file for this run

name: Lint
on:
pull_request:
push:
branches:
- main
jobs:
prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Install dependencies
run: npm install
- name: Run Prettier
run: npx prettier --check "**/*.{js,jsx,ts,tsx,json,css,md}"