aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/format.yml
blob: 2387c9480fe0cd48f922c2c76bb50c9509e3b1a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: Formatting

on:
  push:
    branches:
    - master
    
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout
      uses: actions/checkout@v4
    - name: Setup Node
      uses: actions/setup-node@v4
      with:
        node-version: '14'
        cache: 'npm'
    - name: Prettier Action
      uses: creyD/prettier_action@v4.3
      with:
        same_commit: false
        prettier_options: --write **/*.js **/*.ts