Skip to content

Commit d8e1da1

Browse files
authored
chore(Workflows): Include prettier validation (#2663)
* Create prettier-check.yml * fix prettier
1 parent 6097b27 commit d8e1da1

2 files changed

Lines changed: 30 additions & 1 deletion

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Prettier Format Check
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
paths:
7+
- "tokens/**/*.json"
8+
- ".github/workflows/prettier-check.yml"
9+
branches:
10+
- production
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
prettier-check:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout repo
21+
uses: actions/checkout@v4
22+
23+
- name: Setup Node
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: 20
27+
28+
- name: Check formatting with Prettier
29+
run: npx --yes prettier@latest --check "tokens/**/*.json"

tokens/vivo-evolution.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4220,4 +4220,4 @@
42204220
}
42214221
}
42224222
}
4223-
}
4223+
}

0 commit comments

Comments
 (0)