Skip to content

Commit 91cb19c

Browse files
committed
chore(husky): upgraded the config to match the installed version
1 parent fae1ded commit 91cb19c

File tree

6 files changed

+19
-10
lines changed

6 files changed

+19
-10
lines changed

.github/workflows/node-ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Node.js CI
55
- master
66
- alpha
77
- beta
8-
- 'dependabot/**'
8+
- dependabot/**
99
pull_request:
1010
types:
1111
- opened
@@ -19,12 +19,12 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v2
2121
- name: Read .nvmrc
22-
run: 'echo ::set-output name=NVMRC::$(cat .nvmrc)'
22+
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
2323
id: nvm
2424
- name: Setup node
2525
uses: actions/setup-node@v1
2626
with:
27-
node-version: '${{ steps.nvm.outputs.NVMRC }}'
27+
node-version: ${{ steps.nvm.outputs.NVMRC }}
2828
- uses: bahmutov/npm-install@v1
2929
- run: npm test
3030
release:
@@ -33,15 +33,15 @@ jobs:
3333
steps:
3434
- uses: actions/checkout@v2
3535
- name: Read .nvmrc
36-
run: 'echo ::set-output name=NVMRC::$(cat .nvmrc)'
36+
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
3737
id: nvm
3838
- name: Setup node
3939
uses: actions/setup-node@v1
4040
with:
41-
node-version: '${{ steps.nvm.outputs.NVMRC }}'
41+
node-version: ${{ steps.nvm.outputs.NVMRC }}
4242
- uses: bahmutov/npm-install@v1
4343
- name: semantic-release
4444
run: npx semantic-release
4545
env:
46-
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
47-
NPM_TOKEN: '${{ secrets.NPM_PUBLISH_TOKEN }}'
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit $1

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm test

.huskyrc.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,16 @@
1717
"test": "npm-run-all --print-label --parallel lint:*",
1818
"lint:js": "eslint . --cache",
1919
"lint:md": "remark . --frail",
20-
"lint:sensitive": "ban"
20+
"lint:sensitive": "ban",
21+
"prepare": "husky install"
2122
},
2223
"devDependencies": {
2324
"@dsmjs/eslint-config": "1.0.80",
2425
"@form8ion/commitlint-config": "^1.0.6",
2526
"@form8ion/remark-lint-preset": "^1.0.1",
2627
"ban-sensitive-files": "^1.9.2",
2728
"cz-conventional-changelog": "^3.0.2",
28-
"husky": "^6.0.0",
29+
"husky": "6.0.0",
2930
"npm-run-all": "^4.1.5",
3031
"remark-cli": "^9.0.0"
3132
},

0 commit comments

Comments
 (0)