Skip to content

Update CHANGELOG.md #25

Update CHANGELOG.md

Update CHANGELOG.md #25

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: 'false' # no lock file, so disable caching
- name: 📦 Install Prettier
run: npm install --global prettier
- name: 🔍 Run Prettier Check
id: prettier
run: |
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