Skip to content

Commit

Permalink
chore: Update coverage badge.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 20, 2021
1 parent 4957951 commit eb86f1d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
- run: npm run coverage
- run: npm run doc

- run: npm i coverage-badges-cli -g
- run: coverage-badges
- run: cp -rp coverage build

- run: npm install @jsdevtools/npm-publish -g
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json

Expand All @@ -33,11 +37,11 @@ jobs:

- name: Generate Changelog
id: changelog
uses: jaywcjlove/[email protected].3
uses: jaywcjlove/[email protected].6
with:
token: ${{ secrets.GITHUB_TOKEN }}
head-ref: ${{steps.create_tag.outputs.version}}
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
filter-author: (小弟调调™|Renovate Bot)
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'

- name: Create Release
Expand All @@ -58,9 +62,8 @@ jobs:
${{ steps.changelog.outputs.changelog }}
- name: Build and Deploy
uses: peaceiris/[email protected]
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ react-hotkeys

[![NPM Downloads](https://img.shields.io/npm/dm/react-hot-keys.svg?style=flat)](https://www.npmjs.com/package/react-hot-keys)
[![Build & Deploy](https://github.com/jaywcjlove/react-hotkeys/workflows/Build%20&%20Deploy/badge.svg)](https://github.com/jaywcjlove/react-hotkeys/actions)
[![npm package](https://img.shields.io/npm/v/react-hot-keys.svg)](https://www.npmjs.org/package/react-hot-keys) [![Coveralls](https://img.shields.io/coveralls/jaywcjlove/react-hotkeys/master.svg)](https://coveralls.io/github/jaywcjlove/react-hotkeys)
[![npm package](https://img.shields.io/npm/v/react-hot-keys.svg)](https://www.npmjs.org/package/react-hot-keys) [![Coveralls](https://jaywcjlove.github.io/react-hotkeys/coverage/badges.svg)](https://jaywcjlove.github.io/react-hotkeys/coverage/lcov-report/)

<!--dividing-->

Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
"cjs"
],
"jest": {
"coverageReporters": [
"lcov",
"json-summary"
],
"testMatch": [
"<rootDir>/test/*.{ts,tsx}"
]
Expand Down

0 comments on commit eb86f1d

Please sign in to comment.