Skip to content

Merge pull request #17 from aanu2021/main #24

Merge pull request #17 from aanu2021/main

Merge pull request #17 from aanu2021/main #24

Workflow file for this run

name: Prettier Check
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
prettier:
name: Run Prettier
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 21.1.0
- name: Install dependencies
run: npm ci --only=dev
- name: Run Prettier
run: npm run prettier:github-action
- name: Check Prettier formatting
id: prettier-status
run: |
npm run prettier:github-action || echo 'failed'
echo "::set-output name=prettier-status::${{ steps.prettier-status.outputs.stdout }}"