Fixing Loading issue not shown initially on welcome screen #223
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 & Linting | |
on: | |
push: | |
branches: | |
- master | |
- main | |
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 ESLint | |
run: | |
npm install eslint | |
- name: Apply Auto Linting fixes | |
run: npx eslint --config .eslintrc.cjs src/ --fix | |
- name: Install Prettier | |
run: | | |
npm install --global prettier | |
- name: Format with Prettier | |
run: prettier --write "**/*.{js,jsx,ts,tsx,md,mdx,css,yaml,json}" | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Apply Auto Linting & Prettier Formatting Fixes | |