Skip to content

Workflow file for this run

name: Ensure code is formatted
on: [push, pull_request]
concurrency: ci-${{ github.ref }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- run: git pull --rebase
- name: Install node_modules
run: yarn
- name: Format
run: yarn format
- name: Commit changes
uses: EndBug/add-and-commit@v9
if: ${{ github.ref == 'refs/heads/master' }}
with:
author_name: high5-bot
author_email: [email protected]
message: 'style: format code with prettier'
add: '.'
push: true