mirror of
https://git.aramjonghu.nl/AramJonghu/aramjonghu-site.git
synced 2026-06-06 17:18:24 +02:00
test forgejo actions
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
name: Format code with Prettier
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["master"]
|
||||
|
||||
jobs:
|
||||
format:
|
||||
runs-on: linux
|
||||
container: node:20-bookworm
|
||||
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Run Prettier
|
||||
run: npx prettier --write .
|
||||
|
||||
- name: Commit changes (if any)
|
||||
run: |
|
||||
git config user.name "forgejo-bot"
|
||||
git config user.email "forgejo-bot@local"
|
||||
git add .
|
||||
git diff --cached --quiet || git commit -m "chore: format with prettier"
|
||||
git push
|
||||
@@ -31,6 +31,7 @@
|
||||
"eslint-plugin-react-hooks": "^7.0.1",
|
||||
"eslint-plugin-react-refresh": "^0.5.2",
|
||||
"globals": "^17.4.0",
|
||||
"prettier": "^3.8.3",
|
||||
"vite": "^8.0.4"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user