Skip to content

Added prettier, lint-staged and husky. #1

Added prettier, lint-staged and husky.

Added prettier, lint-staged and husky. #1

Workflow file for this run

# SPDX-License-Identifier: Apache-2.0 OR MIT
#
# SPDX-FileCopyrightText: 2023 Tristan Partin <tristan@partin.io>
name: Prettier
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- README.md
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: latest
cache: npm
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Install dependencies
run: |
npm ci
- name: Check
run: |
npm run prettier:check