mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-03-21 17:54:13 -05:00
Add an action to automatically fix code styles
This commit is contained in:
parent
0cd1e40da2
commit
24be6a4d8e
25
.github/workflows/fix-code-styles.yml
vendored
Normal file
25
.github/workflows/fix-code-styles.yml
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
name: Fix code styles
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'npm'
|
||||
- run: npm ci
|
||||
- run: npm run lint-fix
|
||||
- name: Commit changes
|
||||
uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
commit_message: Fix styling
|
||||
Loading…
Reference in New Issue
Block a user