Merge pull request #83 from smals-jy/patch-1 #597
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
with: | |
node-version: "lts/*" | |
- name: 🚧 Install dependencies | |
run: npm install | |
- name: 🛂 Enforce linting | |
run: npm run lint-fix | |
- uses: EndBug/[email protected] | |
if: ${{ github.ref == 'ref/heads/main' }} | |
with: | |
author_name: "Prettier Bot" | |
author_email: "[email protected]" | |
message: "chore: Use prettier to lint files [skip ci]" |