Skip to content

Bump the npm group across 1 directory with 21 updates #162

Bump the npm group across 1 directory with 21 updates

Bump the npm group across 1 directory with 21 updates #162

name: Reformat and Lint
on:
pull_request:
push:
branches:
- main
merge_group:
workflow_dispatch:
jobs:
reformat-and-lint:
if: github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: 🛎 Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.WORKFLOW_COMMIT }}
- name: 📦 Setup Node.js and caching
uses: actions/setup-node@v3
with:
node-version: latest
cache: "npm"
- name: 🔨 Install
run: npm i
- name: 🧹 Reformat
run: npx prettier --write .
- name: 🚨 Lint
run: npx eslint .
- name: ⬆️ Commit changes
if: github.ref != 'refs/heads/main'
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Reformat and Lint