-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 954 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
29
30
31
32
33
34
name: Lint
on:
push:
branches-ignore:
- master
pull_request:
jobs:
build:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.2.0
- uses: bahmutov/npm-install@v1
with:
install-command: yarn install --frozen-lockfile
- name: Lint JS
run: npx standard --fix
- name: Lint SCSS
run: npx stylelint "**/*.scss" --fix
- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add -A
git commit --no-verify -m "[skip ci] Lint files" || true
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}