Skip to content

Commit

Permalink
chore(husky): upgraded config to match the installed version
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Aug 18, 2021
1 parent fd2e9b9 commit e99df8f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 15 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Node.js CI
- master
- alpha
- beta
- 'renovate/**'
- renovate/**
pull_request:
types:
- opened
Expand All @@ -19,31 +19,31 @@ 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@v2
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
node-version: ${{ steps.nvm.outputs.NVMRC }}
- uses: bahmutov/npm-install@v1
- run: npm test
- name: Upload coverage data to Codecov
run: 'npm run coverage:report'
run: npm run coverage:report
release:
needs: verify
runs-on: ubuntu-latest
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@v2
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
node-version: ${{ steps.nvm.outputs.NVMRC }}
- uses: bahmutov/npm-install@v1
- name: semantic-release
run: npx semantic-release
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
NPM_TOKEN: '${{ secrets.NPM_PUBLISH_TOKEN }}'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
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 @@ -22,7 +22,8 @@
"start": "cross-env BABEL_ENV=example babel-node ./example/app.js",
"build": "rollup -c",
"generate:md": "remark . --output",
"prepack": "npm run build"
"prepack": "npm run build",
"prepare": "husky install"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit e99df8f

Please sign in to comment.