-
Notifications
You must be signed in to change notification settings - Fork 632
45 lines (38 loc) · 1.22 KB
/
prettier.yml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Run Prettier
on:
push:
branches:
- enhanced
paths-ignore:
- 'precompiled/**'
workflow_dispatch:
jobs:
run-prettier:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Install dependencies
run: yarn
- name: Run prettier
run: yarn prettier -w .
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ github.token }}
commit-message: 'style: with prettier [skip ci]'
author: 'github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>'
branch: ci/prettier
delete-branch: true
title: 'style: with prettier'
body: |
Please help me check this. Thanks! :-)
labels: ci:style