Skip to content

Merge pull request #4 from ava-labs/pin-github-action #18

Merge pull request #4 from ava-labs/pin-github-action

Merge pull request #4 from ava-labs/pin-github-action #18

Workflow file for this run

name: Run prettier
on:
push:
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
- uses: actions/cache@8492260343ad570701412c2f464a5877dc76bace # 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'