chains/.github/workflows/prettier.yml
Frederik Bolding 906a9bbfe3
Revert back to previous Prettier implementation (#1675)
* Revert back to previous Prettier implementation

* Run Prettier
2022-09-30 21:09:21 +02:00

23 lines
505 B
YAML

name: Run prettier
on:
push:
pull_request:
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
- uses: actions/cache@v2
name: Configure npm caching
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/workflows/prettier.yml') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Run prettier
run: |-
npx prettier --check '_data/*/*.json'