Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MNT] Updated husky scripts #419

Merged
merged 16 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/bump_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion .husky/post-merge
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

git diff HEAD^ HEAD --exit-code -- ./package.json || npm ci
1 change: 0 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-query-tool",
"private": true,
"version": "v0.8.0",
"version": "v0.8.1",
"type": "module",
"scripts": {
"dev": "vite",
Expand All @@ -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",
Expand Down
Loading