Skip to content

Commit 6695f87

Browse files
fix: scope Vale to docs/ directory only, fix vale-action config
1 parent 33c6aa7 commit 6695f87

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,14 @@ jobs:
3131
- name: Check formatting with Prettier
3232
run: npx prettier --check "src/**/*.{js,jsx,json,css,md}"
3333

34-
- name: Set up Vale
34+
- name: Lint docs with Vale
3535
uses: errata-ai/vale-action@v2
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3638
with:
37-
files: docs, blog, src
39+
files: docs
40+
reporter: github-check
41+
fail_on_error: true
3842

3943
- name: Build site
4044
run: npm run build

.vale.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
StylesPath = styles
22
MinAlertLevel = suggestion
3+
34
[*.md]
45
BasedOnStyles = Vale, Microsoft

0 commit comments

Comments
 (0)