Merge pull request #3 from OSDG-IIITH/dockerize #2
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: Auto Formatting | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
formatting: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install Prettier | |
run: | | |
cd frontend | |
npm install --global prettier | |
- name: Format with Prettier | |
run: | | |
cd frontend | |
prettier --write "**/*.{js,jsx,md,mdx,css,yaml}" | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Apply Prettier Formatting Fixes |