Skip to content

Commit c63d13b

Browse files
committed
chore: update npm config to use legacy peer deps and disable husky install on build
1 parent 457735d commit c63d13b

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

.github/workflows/validate.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
uses: bahmutov/npm-install@v1
3737
with:
3838
useLockFile: false
39+
env:
40+
HUSKY_SKIP_INSTALL: true
3941

4042
- name: ▶️ Run validate script
4143
run: npm run validate
@@ -48,8 +50,8 @@ jobs:
4850
runs-on: ubuntu-latest
4951
if:
5052
${{ github.repository == 'testing-library/react-hooks-testing-library' &&
51-
contains('refs/heads/main,refs/heads/beta,refs/heads/next,refs/heads/alpha',
52-
github.ref) && github.event_name == 'push' }}
53+
contains('refs/heads/main,refs/heads/beta,refs/heads/next,refs/heads/alpha', github.ref) &&
54+
github.event_name == 'push' }}
5355
steps:
5456
- name: 🛑 Cancel Previous Runs
5557
uses: styfle/[email protected]
@@ -68,6 +70,8 @@ jobs:
6870
uses: bahmutov/npm-install@v1
6971
with:
7072
useLockFile: false
73+
env:
74+
HUSKY_SKIP_INSTALL: true
7175

7276
- name: 🏗 Run build script
7377
run: npm run build

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
package-lock=false
2+
legacy-peer-deps=true

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@
4343
<hr />
4444

4545
<!-- prettier-ignore-start -->
46-
47-
[![Build Status](https://img.shields.io/travis/testing-library/react-hooks-testing-library.svg?style=flat-square)](https://travis-ci.org/testing-library/react-hooks-testing-library)
46+
![Build Status](https://github.com/testing-library/react-hooks-testing-library/workflows/validate/badge.svg)
4847
[![codecov](https://img.shields.io/codecov/c/github/testing-library/react-hooks-testing-library.svg?style=flat-square)](https://codecov.io/gh/testing-library/react-hooks-testing-library)
4948
[![version](https://img.shields.io/npm/v/@testing-library/react-hooks.svg?style=flat-square)](https://www.npmjs.com/package/@testing-library/react-hooks)
5049
[![downloads](https://img.shields.io/npm/dm/@testing-library/react-hooks.svg?style=flat-square)](http://www.npmtrends.com/@testing-library/react-hooks)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
"all-contributors-cli": "6.19.0",
4444
"codecov": "3.8.1",
4545
"docz": "2.3.1",
46-
"docz-utils": "2.3.0",
4746
"docz-theme-default": "1.2.0",
47+
"docz-utils": "2.3.0",
4848
"kcd-scripts": "^7.2.0",
4949
"react": "17.0.1",
5050
"react-test-renderer": "17.0.1",

0 commit comments

Comments
 (0)