Skip to content

Commit 8f575b5

Browse files
authored
Decouple logic (#21)
* Bump version * Bump package version * Add newline * Update badges in readme
1 parent 76ef7d6 commit 8f575b5

12 files changed

+32927
-5488
lines changed

.github/workflows/codecov.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Running Code Coverage
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
matrix:
12+
node-version: [16.x]
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v2
17+
with:
18+
fetch-depth: 2
19+
20+
- name: Set up Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v1
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
25+
- name: Install dependencies
26+
run: npm install
27+
28+
- name: Run tests
29+
run: npm run test
30+
31+
- name: Upload coverage to Codecov
32+
uses: codecov/codecov-action@v2
33+

CHANGELOG.md

Whitespace-only changes.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
[![Latest Stable Version](https://img.shields.io/npm/v/use-scroll-direction.svg)](https://www.npmjs.com/package/use-scroll-direction)
77
[![CI Status](https://github.com/AndrzejSala/use-scroll-direction/workflows/CI/badge.svg)](https://github.com/AndrzejSala/use-scroll-direction/actions)
8-
[![Gzipped size](https://img.shields.io/bundlephobia/min/use-scroll-direction?label=size)](https://www.npmjs.com/package/use-scroll-direction)
8+
[![Gzipped size](https://img.shields.io/bundlephobia/minzip/use-scroll-direction?label=size)](https://www.npmjs.com/package/use-scroll-direction)
99
[![License](https://img.shields.io/npm/l/use-scroll-direction.svg)](./LICENSE)
1010

1111
A simple, performant, and cross-browser hook for handling scroll in your next react app.

0 commit comments

Comments
 (0)