Skip to content

Format with prettier #320

Format with prettier

Format with prettier #320

Workflow file for this run

# syntax: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
name: Prettier
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
name: Format
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: rm -f package.json
- run: rm -f package-lock.json
- run: npm init -y
- run: npm i -D @yandeu/prettier-config
- run: npm i -D prettier
- run: node node_modules/.bin/prettier --check src