add prettier formatting #41
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check syntax | |
on: | |
push: | |
jobs: | |
build: | |
name: Check and format content with Prettier | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- name: Install dependencies | |
run: sudo npm install -g prettier | |
- name: Check syntax with prettier | |
run: /usr/local/bin/prettier --check . | |
- name: Prettify code | |
uses: creyD/[email protected] | |
with: | |
prettier_options: --write . |