prettier and package.json fix

This commit is contained in:
2026-05-21 21:32:17 +02:00
parent 6274478d7e
commit 472648582f
+23 -23
View File
@@ -1,33 +1,33 @@
name: Format frontend with Prettier name: Format frontend with Prettier
on: on:
push: push:
branches: ["master"] branches: ["master"]
jobs: jobs:
format: format:
runs-on: linux runs-on: linux
container: alpine:latest container: alpine:latest
steps: steps:
- name: Install dependencies - name: Install dependencies
run: apk add --no-cache nodejs npm git run: apk add --no-cache nodejs npm git
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install frontend deps - name: Install frontend deps
working-directory: frontend working-directory: frontend
run: npm install run: npm install
- name: Run Prettier - name: Run Prettier
working-directory: frontend working-directory: frontend
run: npx prettier --write . run: npx prettier --write .
- name: Commit changes - name: Commit changes
run: | run: |
git config user.name "forgejo-bot" git config user.name "forgejo-bot"
git config user.email "forgejo-bot@local" git config user.email "forgejo-bot@local"
git add frontend git add frontend
git diff --cached --quiet || git commit -m "chore: format frontend with prettier" git diff --cached --quiet || git commit -m "chore: format frontend with prettier"
git push git push