Skip to content

Commit 3ce2238

Browse files
committed
ci: don't run git hooks when in ci
1 parent 0014da0 commit 3ce2238

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"test": "jest",
2929
"tools:regenerate-docs": "ts-node -T tools/regenerate-docs",
3030
"typecheck": "tsc -p .",
31-
"postinstall": "husky install",
31+
"postinstall": "is-ci || husky install",
3232
"prepublishOnly": "pinst --disable",
3333
"postpublish": "pinst --enable"
3434
},
@@ -108,6 +108,7 @@
108108
"eslint-plugin-node": "^11.0.0",
109109
"eslint-plugin-prettier": "^3.0.0",
110110
"husky": "^5.1.3",
111+
"is-ci": "^3.0.0",
111112
"jest": "^26.0.1",
112113
"jest-runner-eslint": "^0.10.0",
113114
"lint-staged": "^10.2.2",

yarn.lock

+19
Original file line numberDiff line numberDiff line change
@@ -3282,6 +3282,13 @@ __metadata:
32823282
languageName: node
32833283
linkType: hard
32843284

3285+
"ci-info@npm:^3.1.1":
3286+
version: 3.1.1
3287+
resolution: "ci-info@npm:3.1.1"
3288+
checksum: 417d2bf17c320d477bc32997d3831bcc1b174d6b48616c2f0463765f042f073bfbfb15e06abdeea55b05ca9c8e054057eb9e0672e4e6031457e87216b2faddda
3289+
languageName: node
3290+
linkType: hard
3291+
32853292
"cidr-regex@npm:^2.0.10":
32863293
version: 2.0.10
32873294
resolution: "cidr-regex@npm:2.0.10"
@@ -4574,6 +4581,7 @@ __metadata:
45744581
eslint-plugin-node: ^11.0.0
45754582
eslint-plugin-prettier: ^3.0.0
45764583
husky: ^5.1.3
4584+
is-ci: ^3.0.0
45774585
jest: ^26.0.1
45784586
jest-runner-eslint: ^0.10.0
45794587
lint-staged: ^10.2.2
@@ -6105,6 +6113,17 @@ __metadata:
61056113
languageName: node
61066114
linkType: hard
61076115

6116+
"is-ci@npm:^3.0.0":
6117+
version: 3.0.0
6118+
resolution: "is-ci@npm:3.0.0"
6119+
dependencies:
6120+
ci-info: ^3.1.1
6121+
bin:
6122+
is-ci: bin.js
6123+
checksum: 1e26d3ba6634ebee83f9d22f260354c5d950eada4d609c30cc2642069f8ba52f3aeb4c9bbf8099aaf04a2f44a1ed7beef2a24485f988753c8c078a57e9b3a2fd
6124+
languageName: node
6125+
linkType: hard
6126+
61086127
"is-cidr@npm:^3.0.0":
61096128
version: 3.1.1
61106129
resolution: "is-cidr@npm:3.1.1"

0 commit comments

Comments
 (0)