Skip to content

Commit

Permalink
chore(deps): make manual code fixes to support husky v9
Browse files Browse the repository at this point in the history
  • Loading branch information
intcreator committed Nov 5, 2024
1 parent 7ee1c36 commit f5b2588
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/lint_pr_title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
id: lint_pr_title
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HUSKY: 0

- uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # v2
# When the previous steps fails, the workflow would stop. By adding this
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
HUSKY: 0
7 changes: 0 additions & 7 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
#!/usr/bin/env sh

# https://typicode.github.io/husky/guide.html#disable-husky-in-ci-docker-prod
[ -n "$CI" ] && exit 0

# only run commitlint on main (for admins pushing directly to branch)
[ "$(git rev-parse --abbrev-ref HEAD)" != "main" ] && exit 0

. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit ${1}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"test": "jest --coverage",
"test:watch": "jest --watch --coverage",
"test:fuzz": "jest --testMatch='**/*.fuzz.ts' --coverage=false --testTimeout=120000",
"prepare": "husky install"
"prepare": "husky"
},
"dependencies": {
"@types/luxon": "~3.4.0",
Expand Down Expand Up @@ -90,4 +90,4 @@
"LICENSE",
"README.md"
]
}
}

0 comments on commit f5b2588

Please sign in to comment.