Skip to content

Commit 57b20e8

Browse files
committed
chore: fix pre-commit hooks and don't run husky in CI
1 parent 693ca41 commit 57b20e8

File tree

5 files changed

+21
-22
lines changed

5 files changed

+21
-22
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515
REGISTRY: ghcr.io
1616
IMAGE_NAME: ${{ github.repository }}
1717
OCULAR_GENESIS_HOST: /api
18+
HUSKY: 0
1819

1920
jobs:
2021
build:

.husky/commit-msg

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
message="$(cat $1)"
2+
regex="^(fix|feat|chore|docs): [a-z].*$"
3+
4+
if ! [[ $message =~ $regex ]]; then
5+
echo "Commit message does not follow Conventional Commits format: <type>: <lowercase message>"
6+
echo "Allowed types: fix, feat, chore, docs"
7+
echo "Got message: '$message'"
8+
exit 1
9+
fi
10+

.husky/pre-commit

Lines changed: 0 additions & 12 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"author": "Simon Reinisch <contact@reinisch.io>",
88
"packageManager": "pnpm@10.11.0",
99
"engines": {
10-
"node": "^22"
10+
"node": "22"
1111
},
1212
"scripts": {
1313
"dev": "pnpm run \"/^dev:.+/\"",
@@ -39,7 +39,7 @@
3939
},
4040
"devDependencies": {
4141
"@eslint/js": "9.27.0",
42-
"@intlify/eslint-plugin-vue-i18n": "^4.0.1",
42+
"@intlify/eslint-plugin-vue-i18n": "4.0.1",
4343
"@playwright/test": "1.52.0",
4444
"@types/ackee-tracker": "5.0.4",
4545
"@types/html-minifier-terser": "7.0.2",
@@ -59,7 +59,7 @@
5959
"eslint-plugin-vue": "10.1.0",
6060
"fast-xml-parser": "5.3.0",
6161
"html-minifier-terser": "7.2.0",
62-
"husky": "^8.0.0",
62+
"husky": "8.0.0",
6363
"prettier": "3.5.3",
6464
"sass": "1.89.0",
6565
"typescript": "5.8.3",

pnpm-lock.yaml

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)