Skip to content

Commit f8fb570

Browse files
committed
docs: update
1 parent 767f744 commit f8fb570

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ You can use it to **lint your commit messages**, **run tests**, **lint code**, e
2424
The new husky is used by these awesome projects:
2525

2626
- [webpack/webpack](https://github.com/webpack/webpack)
27-
- [ant-design/ant-design](https://github.com/ant-design/ant-design)
2827
- [angular/angular](https://github.com/angular/angular)
2928
- [angular/angular-cli](https://github.com/angular/angular-cli)
3029
- [angular/components](https://github.com/angular/components)
@@ -45,6 +44,7 @@ The new husky is used by these awesome projects:
4544
- [logaretm/vee-validate](https://github.com/logaretm/vee-validate)
4645
- [zenorocha/clipboard.js](https://github.com/zenorocha/clipboard.js)
4746
- [NodeBB/NodeBB](https://github.com/NodeBB/NodeBB)
47+
- [ant-design/ant-design](https://github.com/ant-design/ant-design)
4848
- And [__more__](https://github.com/typicode/husky/network/dependents?package_id=UGFja2FnZS0xODQzNTgwNg%3D%3D)
4949

5050
# Usage
@@ -234,7 +234,13 @@ For Git commands that don't have a `--no-verify` option, you can use `HUSKY` env
234234
HUSKY=0 git push # yolo!
235235
```
236236

237-
## Disable hooks in CI
237+
## Disable husky in CI/Docker
238+
239+
If you want to prevent husky from installing completely
240+
241+
```shell
242+
npm ci --only=production --ignore-scripts
243+
```
238244

239245
You can set `HUSKY` environment variable to `0` in your CI config file, to disable all hooks.
240246

0 commit comments

Comments
 (0)