Skip to content

Updated prettier.yml, to check instead of write, removed .prettierign… #4

Updated prettier.yml, to check instead of write, removed .prettierign…

Updated prettier.yml, to check instead of write, removed .prettierign… #4

Workflow file for this run

name: 'Lint and Format'
# This workflow runs on pushes to any branch
# and on any pull request
on:
[push, pull_request]
jobs:
prettier-format-commit:
name: Prettier format and commit
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Run Prettier and format files
run: |
npm install --global prettier
# The --write flag modifies files in-place
echo -e "node_modules\n.github" > .prettierignore
prettier --check . --config .prettierrc