Skip to content

fix(project): add package-lock.json into Git; add node and npm version requirements in README.md; fix the code formatting error #26

fix(project): add package-lock.json into Git; add node and npm version requirements in README.md; fix the code formatting error

fix(project): add package-lock.json into Git; add node and npm version requirements in README.md; fix the code formatting error #26

Workflow file for this run

name: Run formatter on PR
on: [push, pull_request]
jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: |
if [ -f package-lock.json ]; then
npm ci
else
npm install
fi
- name: Run formatter
run: npm run format