Skip to content

Commit

Permalink
Merge pull request #263 from fisker/husky-9
Browse files Browse the repository at this point in the history
Update husky to v9
  • Loading branch information
3cp committed Jun 6, 2024
2 parents 17b1af9 + aec92f7 commit 9d3d0a0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,28 @@ on:
pull_request:
branches: [ master ]

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node-version: [14, 16, 18]
node-version: [16, 18, 20, 22]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm i
Expand Down
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

node ./scripts/prettier.js check-changed
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"preversion": "npm test",
"version": "standard-changelog && git add CHANGELOG.md",
"postversion": "git push && git push --tags && npm publish",
"prepare": "husky install"
"prepare": "husky"
},
"devDependencies": {
"@rollup/plugin-json": "^4.1.0",
Expand All @@ -95,7 +95,7 @@
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-node": "^11.1.0",
"glob": "^8.0.3",
"husky": "^8.0.1",
"husky": "^9.0.11",
"mocha": "^10.0.0",
"nyc": "^15.1.0",
"path": "^0.12.7",
Expand Down

0 comments on commit 9d3d0a0

Please sign in to comment.