Skip to content

Update GitHub Actions for 4.2.4 (#583) #898

Update GitHub Actions for 4.2.4 (#583)

Update GitHub Actions for 4.2.4 (#583) #898

Workflow file for this run

# 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: '20.x'
cache: 'npm'
- name: Install dependencies
run: |
npm ci
- name: Prettify code
run: |
npm run check