diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml new file mode 100644 index 000000000..bd2a669e7 --- /dev/null +++ b/.github/workflows/format.yaml @@ -0,0 +1,23 @@ +name: Prettier Check + +on: + pull_request: + branches: [ main, master ] + +jobs: + prettier: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: lts/* + + - name: Install dependencies + run: npm ci + + - name: Run Prettier check + run: npx prettier --check './**/*.{js,ts,tsx,vue}' \ No newline at end of file