Line-breaks in topic titles causing builds to fail #79
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow checks code formatting | |
name: Run Prettier | |
# This action works with pull requests and pushes | |
on: | |
pull_request: | |
push: | |
branches: | |
# Push events on development branch | |
- develop | |
jobs: | |
prettier: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
# Make sure the actual branch is checked out when running on pull requests | |
ref: ${{ github.ref }} | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
cache: 'npm' | |
- name: Install dependencies | |
run: | | |
npm ci | |
- name: Prettify code | |
run: | | |
npm run check |