Skip to content

Commit

Permalink
ci: don't run git hooks when in ci (#783)
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath authored Mar 7, 2021
1 parent 0014da0 commit 9e90d31
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"test": "jest",
"tools:regenerate-docs": "ts-node -T tools/regenerate-docs",
"typecheck": "tsc -p .",
"postinstall": "husky install",
"postinstall": "is-ci || husky install",
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable"
},
Expand Down Expand Up @@ -108,6 +108,7 @@
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-prettier": "^3.0.0",
"husky": "^5.1.3",
"is-ci": "^3.0.0",
"jest": "^26.0.1",
"jest-runner-eslint": "^0.10.0",
"lint-staged": "^10.2.2",
Expand Down
19 changes: 19 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3282,6 +3282,13 @@ __metadata:
languageName: node
linkType: hard

"ci-info@npm:^3.1.1":
version: 3.1.1
resolution: "ci-info@npm:3.1.1"
checksum: 417d2bf17c320d477bc32997d3831bcc1b174d6b48616c2f0463765f042f073bfbfb15e06abdeea55b05ca9c8e054057eb9e0672e4e6031457e87216b2faddda
languageName: node
linkType: hard

"cidr-regex@npm:^2.0.10":
version: 2.0.10
resolution: "cidr-regex@npm:2.0.10"
Expand Down Expand Up @@ -4574,6 +4581,7 @@ __metadata:
eslint-plugin-node: ^11.0.0
eslint-plugin-prettier: ^3.0.0
husky: ^5.1.3
is-ci: ^3.0.0
jest: ^26.0.1
jest-runner-eslint: ^0.10.0
lint-staged: ^10.2.2
Expand Down Expand Up @@ -6105,6 +6113,17 @@ __metadata:
languageName: node
linkType: hard

"is-ci@npm:^3.0.0":
version: 3.0.0
resolution: "is-ci@npm:3.0.0"
dependencies:
ci-info: ^3.1.1
bin:
is-ci: bin.js
checksum: 1e26d3ba6634ebee83f9d22f260354c5d950eada4d609c30cc2642069f8ba52f3aeb4c9bbf8099aaf04a2f44a1ed7beef2a24485f988753c8c078a57e9b3a2fd
languageName: node
linkType: hard

"is-cidr@npm:^3.0.0":
version: 3.1.1
resolution: "is-cidr@npm:3.1.1"
Expand Down

0 comments on commit 9e90d31

Please sign in to comment.