-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 900 Bytes
/
format.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
name: Prettier
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, ready_for_review]
branches-ignore:
- changeset-release/main
jobs:
linter:
name: Running lint
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Node 18
uses: actions/setup-node@v4
with:
node-version: "18.16.1"
- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: 7.14.0
- name: Install Dependencies
run: pnpm i
- name: Prettier check
run: pnpm format