Skip to content

Update readme

Update readme #18

Workflow file for this run

name: Format code
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
format-code:
name: Format code
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install Prettier
# Use global install to ensure Prettier is available
# and that we don't modify the package.json
run: |
npm install -g prettier
# Prettify code and commit if changes
- name: Format code
run: |
prettier --write .
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply formatting changes
branch: ${{ github.head_ref }}