返回提交历史
Added
.github/workflows/prettier.yml
+21
-0
XFEstudio/SpaceNinjaServer
Create gh action - format (#17)
Co-authored-by: AngeloTadeucci <AngeloTadeucci@users.noreply.github.com>
73791555
代码差异
1 个文件
+21
-0
@@ -0,0 +1,21 @@
1
name: Prettier
2
on:
3
pull_request:
4
branches: [main]
5
jobs:
6
format:
7
runs-on: ubuntu-latest
8
steps:
9
- uses: actions/checkout@v2
10
with:
11
ref: ${{ github.head_ref }}
12
- uses: actions/setup-node@v1
13
with:
14
node-version: "18.x"
15
- run: npm ci
16
- run: npm run prettier
17
- name: Commit changes
18
uses: stefanzweifel/git-auto-commit-action@v4.1.2
19
with:
20
commit_message: Apply prettier changes
21
branch: ${{ github.head_ref }}