Skip to content

ci: Add linter workflow #68

ci: Add linter workflow

ci: Add linter workflow #68

Workflow file for this run

name: Format
on: [push, workflow_dispatch, pull_request]
jobs:
format:
runs-on: ubuntu-latest
name: Format Files
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18"
- run: npm ci
- name: Prettier
run: npm run format
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: stefanzweifel/git-auto-commit-action@v4
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
with:
commit_message: "style: format files"