Skip to content

Update CHANGELOG.md #24

Update CHANGELOG.md

Update CHANGELOG.md #24

name: Prettier Code Format Check
on:
push:
branches:
- main
- develop
paths:
- '**/*.js'
- '**/*.ts'
- '**/*.jsx'
- '**/*.tsx'
- '**/*.css'
- '**/*.json'
- '**/*.md'
- '.prettierrc'
- '.prettierignore'
pull_request:
branches:
- main
- develop
paths:
- '**/*.js'
- '**/*.ts'
- '**/*.jsx'
- '**/*.tsx'
- '**/*.css'
- '**/*.json'
- '**/*.md'
- '.prettierrc'
- '.prettierignore'
workflow_dispatch:
jobs:
prettier:
name: Prettier Code Format Validation
runs-on: ubuntu-latest
steps:
- name: 📦 Checkout Repository
uses: actions/checkout@v4.2.2
- name: ⚙️ Setup Node.js
uses: actions/setup-node@v4.0.3
with:
node-version: '20'
cache: 'npm'
- name: 📦 Install Dependencies
run: npm ci
- name: 🔍 Run Prettier Check
id: prettier
run: |
npx prettier --check . > prettier-report.txt || true
- name: 📊 Upload Prettier Report
if: failure()
uses: actions/upload-artifact@v4
with:
name: prettier-report
path: prettier-report.txt
retention-days: 7