Skip to content

Commit

Permalink
chore(husky): updated config to match the installed version
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Jun 11, 2021
1 parent 504fd82 commit 173be94
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 12 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Node.js CI
push:
branches:
- master
- 'dependabot/**'
- dependabot/**
pull_request:
types:
- opened
Expand All @@ -17,12 +17,12 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Read .nvmrc
run: 'echo ::set-output name=NVMRC::$(cat .nvmrc)'
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: nvm
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
node-version: ${{ steps.nvm.outputs.NVMRC }}
- uses: bahmutov/npm-install@v1
- run: npm test
deploy:
Expand All @@ -32,12 +32,12 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Read .nvmrc
run: 'echo ::set-output name=NVMRC::$(cat .nvmrc)'
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: nvm
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
node-version: ${{ steps.nvm.outputs.NVMRC }}
- uses: bahmutov/npm-install@v1
env:
CYPRESS_INSTALL_BINARY: 0
Expand Down
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm test
6 changes: 0 additions & 6 deletions .huskyrc.json

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"snapshot": "npx percy snapshot public/",
"deploy": "run-p --print-label deploy:*",
"predeploy:netlify": "run-s build",
"deploy:netlify": "netlify deploy --dir=./public"
"deploy:netlify": "netlify deploy --dir=./public",
"prepare": "husky install"
},
"config": {
"commitizen": {
Expand Down

0 comments on commit 173be94

Please sign in to comment.