From e168100ea6b3ae03016a50474df08448dc8aaae5 Mon Sep 17 00:00:00 2001 From: Digikwal <79085106+digikwal@users.noreply.github.com> Date: Fri, 27 Jun 2025 01:44:29 +0200 Subject: [PATCH] fieldmate: chore(release): Trigger rebuild after fieldmate release (#2) --- .apps_versions/fieldmate.version | 2 +- Makefile | 28 ++++++++++++---------------- package.json | 6 ++++++ 3 files changed, 19 insertions(+), 17 deletions(-) diff --git a/.apps_versions/fieldmate.version b/.apps_versions/fieldmate.version index 731038b8..e47c8397 100644 --- a/.apps_versions/fieldmate.version +++ b/.apps_versions/fieldmate.version @@ -1 +1 @@ -1750971957 +1750981457 diff --git a/Makefile b/Makefile index 4a7cabe6..e31d8dfc 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,3 @@ -# Default help formatter -.DEFAULT_GOAL := help - -# Colors -GREEN := \033[0;32m -RESET := \033[0m - # Help generator (targets with ##) help: ## Show this help message @echo "" @@ -14,15 +7,18 @@ help: ## Show this help message | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}' @echo "" -# 1. Pre-commit check: trailing whitespace only -lint: ## Run pre-commit check for trailing whitespace - pre-commit run trailing-whitespace --all-files +# 1. Run all linters and formatters from pre-commit config +lint: ## Run all configured pre-commit hooks (includes formatting & checks) + pre-commit run --all-files -# 2. Format all files with prettier -format: ## Run Prettier on the whole repo - npx prettier --write . +# 2. Only run formatting hooks (e.g. Prettier, Black, Isort) +format: ## Run formatting-only hooks from pre-commit + pre-commit run prettier --all-files || true + pre-commit run black --all-files || true + pre-commit run isort --all-files || true + pre-commit run shfmt --all-files || true -# 3a-c. Stage, commit & push +# 3. Stage, commit & push push: ## Add all files, commit (ask for message), and push @git add . @read -p "Enter commit message: " msg; \ @@ -33,9 +29,9 @@ push: ## Add all files, commit (ask for message), and push amend: ## Amend last commit without editing the message git commit --amend --no-edit -# Add-ons you might like: +# Add-ons: -check-hooks: ## Run all configured pre-commit hooks +check-hooks: ## Run all pre-commit hooks (full check) pre-commit run --all-files install-hooks: ## Install pre-commit hooks in .git/hooks diff --git a/package.json b/package.json index 84f514fa..0919192b 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,12 @@ "main", "dev" ], + "releaseRules": [ + { + "type": "fieldmate", + "release": "patch" + } + ], "plugins": [ "@semantic-release/commit-analyzer", [