generated from rdilweb/template-docusaurus-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 10
28 lines (28 loc) · 767 Bytes
/
lint.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
name: Lint
on: [push]
jobs:
lint:
name: Ensure our linting standards
runs-on: ubuntu-latest
permissions:
pull-requests: write
actions: write
contents: write
steps:
- name: 🛎️ Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: 🔨 Setup Node.js
uses: actions/setup-node@v3.8.1
with:
node-version: 18
- name: 🚧 Install dependencies
run: npm ci
- name: 🛂 Enforce linting
run: npm run prettier
- uses: EndBug/add-and-commit@v9.1.3
with:
author_name: "Prettier Bot"
author_email: "actions@github.com"
message: "chore: Use prettier to lint files [skip ci]"