diff --git a/.github/workflows/bump_version.yml b/.github/workflows/bump_version.yml index 39b23f12..5a1ccbda 100644 --- a/.github/workflows/bump_version.yml +++ b/.github/workflows/bump_version.yml @@ -60,14 +60,14 @@ jobs: # Increment based on the auto output if [ "${{ env.INCREMENT }}" == "major" ]; then - ((MAJOR++)) + MAJOR=$((MAJOR + 1)) MINOR=0 PATCH=0 elif [ "${{ env.INCREMENT }}" == "minor" ]; then - ((MINOR++)) + MINOR=$((MINOR + 1)) PATCH=0 elif [ "${{ env.INCREMENT }}" == "patch" ]; then - ((PATCH++)) + PATCH=$((PATCH + 1)) fi # Construct the new version diff --git a/.husky/post-merge b/.husky/post-merge index 3aaff098..af60ae01 100755 --- a/.husky/post-merge +++ b/.husky/post-merge @@ -1,4 +1,3 @@ #!/bin/sh -. "$(dirname "$0")/_/husky.sh" git diff HEAD^ HEAD --exit-code -- ./package.json || npm ci \ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit index 7d5c4c84..a5c0c2bb 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1,4 @@ #!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" npx lint-staged diff --git a/README.md b/README.md index eea25f48..f1bddcde 100644 --- a/README.md +++ b/README.md @@ -146,7 +146,7 @@ You can verify the tool is running by watching for the` info messages from Vite Having installed the dependencies, run the following command to enable husky `pre-commit` and `post-merge` hooks: ```bash -npx husky install +npx husky init ``` ##### Docker compose testing environment for development diff --git a/package.json b/package.json index 54e32d8b..610a0cb3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "react-query-tool", "private": true, - "version": "v0.8.0", + "version": "v0.8.1", "type": "module", "scripts": { "dev": "vite", @@ -11,7 +11,7 @@ "preview": "vite preview", "format:fix": "prettier --write .", "format:check": "prettier --check .", - "prepare": "husky install" + "prepare": "husky" }, "dependencies": { "@auth0/auth0-react": "^2.2.4",