chains/.github/workflows/prettier.yml

22 lines
489 B
YAML
Raw Normal View History

2022-09-06 19:55:01 +00:00
name: Run prettier
on:
push:
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Check out repo
2022-09-06 19:55:01 +00:00
uses: actions/checkout@v2
- uses: actions/cache@v2
name: Configure npm caching
2022-09-06 19:55:01 +00:00
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'