Skip to content

Commit

Permalink
[MNT] Updated husky scripts (#419)
Browse files Browse the repository at this point in the history
* Updated husky scripts

* Bumped version to v0.9.0

* Revert the version back

* Modified the syntax of version bumping step

* Bumped version to v0.8.1

* Revert bump

* Bumped version to v0.9.0

* revert bump

* Bumped version to v1.0.0

* Revert bump

* Bumped version to v0.8.1

---------

Co-authored-by: Neurobagel Bot <neurobagel-bot[bot]@users.noreply.github.com>
  • Loading branch information
rmanaem and neurobagel-bot[bot] authored Dec 20, 2024
1 parent 96c027f commit 599c3e7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
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

0 comments on commit 599c3e7

Please sign in to comment.