-
-
Notifications
You must be signed in to change notification settings - Fork 17
27 lines (25 loc) · 708 Bytes
/
format.yml
File metadata and controls
27 lines (25 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Format code
on: [push, pull_request]
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.head_ref }}
- name: ⬢ Enable Corepack
shell: bash
run: npm install --global --force corepack
- uses: actions/setup-node@v6
with:
node-version: latest
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Run format
run: pnpm format
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v7.1.0
with:
commit_message: 'chore: apply formatting changes'
branch: ${{ github.head_ref }}