Skip to content

Create prettier.yml

Create prettier.yml #1

Workflow file for this run

name: Prettier Check
on:
pull_request:
push:
branches:
- main
jobs:
prettier:
name: Run Prettier
runs-on: ubuntu-latest
steps:

Check failure on line 13 in .github/workflows/prettier.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/prettier.yml

Invalid workflow file

You have an error in your yaml syntax on line 13
- 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}"