Skip to content

Adding prettier GitHub action #4

Adding prettier GitHub action

Adding prettier GitHub action #4

Workflow file for this run

name: Prettier
on:
push:
branches: ["main", "action"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v2
with:
node-version: "14.x"
- run: npm ci
- run: npm run format
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply formatting changes
branch: ${{ github.head_ref }}