-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (35 loc) · 1.1 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
name: Prettier
on:
push:
branhces:
- '**'
- '!main'
- '!released'
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: 'true'
- name: Authenticate NPM
uses: DimensionDev/github-token-action@latest
with:
registry: true
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18.9.0'
- uses: pnpm/action-setup@v2
- name: Install dependencies
run: pnpm install
- name: Check code style with Prettier
run: npx prettier . -w
- name: Check for changes in src/*
id: check-changes
run: echo "::set-output name=changes::$(git diff --name-only -- 'src/*')"
- name: Commit changes if any
uses: EndBug/add-and-commit@v9
with:
message: 'chore: prettier'